Uh oh!
There was an error while loading. Please reload this page.
[stable21] add better index for finding unindexed paths - #30599
Merged
Conversation
backportbot-nextcloudBot
requested review from
CarlSchwan, PVince81, artonge, icewind1991, juliusknorr and skjnldsvJanuary 11, 2022 14:12
PVince81
commented
Jan 11, 2022
Member
@icewind1991 please resolve the conflict |
for the following query 'SELECT "path" FROM "oc_filecache" WHERE ("storage" = $storage) AND ("size" < 0) ORDER BY "fileid" DESC LIMIT 1;'
currently the database will in some cases decide to priorize the sort by fileid over the filter when picking what index to use, resulting in a much slower query.
by creating an index that allows first sorting by fileid and also filter by storage and size this case will be greatly sped up
Signed-off-by: Robin Appelman <robin@icewind.nl>icewind1991force-pushed
the
backport/29118/stable21
branch
from
January 13, 2022 14:48
bbc3822 to
3a1935bCompareicewind1991
commented
Jan 13, 2022
Member
rebased |
artonge
approved these changes
Jan 13, 2022
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
backport of #29118