[21] generate a better optimized query for path prefix search filters#29080
Merged
[21] generate a better optimized query for path prefix search filters#29080
Conversation
Member
|
@icewind1991 Is there any way to verify from the query that it is using an indexed search? The query still seems to use just the fs_mtime index. Might be overlooking something here, but maybe we'd need to have a combined index on storage/mtime/path for that? |
Member
Author
|
Do you have the index from #28541 ? Also those queries look like the one that get generated for sqlite, |
Member
|
Oh sorry, indeed my stable21 setup was on sqlite for some reason, will retest. Sorry for the confusion. |
skjnldsv
approved these changes
Oct 7, 2021
4befe46 to
72ddd28
Compare
Member
Author
|
/backport to stable20 |
juliusknorr
approved these changes
Oct 11, 2021
Member
juliusknorr
left a comment
There was a problem hiding this comment.
All right, seems to do the trick for me now with the right database picked as well 🎉
This was referenced Oct 12, 2021
Signed-off-by: Robin Appelman <robin@icewind.nl>
72ddd28 to
916a838
Compare
icewind1991
added a commit
that referenced
this pull request
Dec 14, 2021
this case was missed from #29080 Signed-off-by: Robin Appelman <robin@icewind.nl>
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 free
to 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.
Applies the optimizations from #28476 and #28608 to the nc21 jail search logic