-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[21] generate a better optimized query for path prefix search filters #29080
Conversation
@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?
|
Do you have the index from #28541 ? Also those queries look like the one that get generated for sqlite, |
Oh sorry, indeed my stable21 setup was on sqlite for some reason, will retest. Sorry for the confusion. |
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.
👍
4befe46
to
72ddd28
Compare
/backport to stable20 |
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.
All right, seems to do the trick for me now with the right database picked as well 🎉
Signed-off-by: Robin Appelman <robin@icewind.nl>
72ddd28
to
916a838
Compare
this case was missed from #29080 Signed-off-by: Robin Appelman <robin@icewind.nl>
Applies the optimizations from #28476 and #28608 to the nc21 jail search logic