-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf: Add index for group_folders table #3390
Conversation
beabd4e
to
201ece6
Compare
201ece6
to
60ff87b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I doubt it would improve anything given that I don't see how the number of groupfolders could be higher than 1000. And with that amount, an index would hardly make a difference, no?
But I guess it does not hurt
Not substantial performance improvements measured, we can still add it later if needed. |
There are instances with 10k+ groupfolders so having an index probably makes sense. |
Ok, then we can add it. I would have expected that there already is an index in case anyone already suffered performance problems from the lack of an index on the table. |
/backport to stable30 |
/backport to stable29 |
/backport to stable28 |
Signed-off-by: provokateurin <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
8dd95d3
to
60ff84c
Compare
We do a lot of SELECTs on this table in the FolderManager, but there is actually no index on it at all. All SELECTs include all columns, so that's why I'm not adding one for folder_id only.
Usually not noticable when there aren't many groupfolders, but if you got a few then it can take a bit too long.