-
-
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
Add missing index for propertypath only queries of DAV properties #30392
Conversation
/backport to stable23 |
/backport to stable22 |
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.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
681e52f
to
ed84f07
Compare
Psalm failure unrelated. |
The backport to stable23 failed. Please do this backport manually. |
The backport to stable22 failed. Please do this backport manually. |
The backport to stable23 failed. Please do this backport manually. |
The backport to stable22 failed. Please do this backport manually. |
Backports failed. 😢 |
Weird. It works just fine locally. |
/backport to stable23 |
/backport to stable22 |
/backport to stable21 |
This is a performance regression of #27426.
All other queries of this class select rows by their
propertypath
anduserid
, so the index from #20716 is used. The new query only selects bypropertypath
, therefore the old index did not apply.Todo
How to test
Run
EXPLAIN SELECT * FROM `oc_properties` WHERE `propertypath` = 'calendars/admin/inbox';
on mariadb/mysql or the equivalent for any other DB before/after applying the optional index. Before no index used. Afterwards it uses an index.