-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
feat: optimize user mount cache #57815
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
base: master
Are you sure you want to change the base?
Conversation
|
I would expect the performance comparison to go the other way around for instances that have a few mounts per user but a lot of files. Adding both comparisons and hoping the DB knows what to do is probably for the best. |
|
On my instance, having both still filter on |
e8727f6 to
9560e1c
Compare
|
I was able to trigger the same EXPLAIN by adding a condition to the join: |
|
/backport to stable33 |
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
9560e1c to
f71f19c
Compare
Optimize requests like:
TODO
Explain
Before
After
The change allows to filter on filecache first
(Rough) Benchmark