-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Additional index on oc_preferences to make queries without a user filter faster #31047
Conversation
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.
👍
seems the index has introduced ordering issues:
|
Postgres needs a sleep after each insert. Otherwise the input order is not the same as it's journaled at the meantime. Also:
|
@juliushaertl can you finish this at some point, it looks interesting :-) |
…without a user filter is fast Signed-off-by: Julius Härtl <jus@bitgrid.net>
476a41b
to
7fbd93b
Compare
Rebased and added an |
Another quick re-review on the order by statement would be appreciated before hitting merge ;) @nickvergessen @PVince81 |
Fixes #30421
IConfig methods may issue queries which are causing a full table scan on oc_preferences with using the existing primary key as an index as it is only partially filtered for in the where clause, as the order seems to be relevant
(userid,appid,configkey)
server/lib/private/AllConfig.php
Lines 485 to 490 in c92ac34
server/lib/private/AllConfig.php
Lines 387 to 392 in c92ac34