Uh oh!
There was an error while loading. Please reload this page.
perf: add new index to serve a full WHERE clause - #2441
Conversation
miaulalala
commented
Mar 9, 2026
/backport to stable33 |
miaulalala
commented
Mar 9, 2026
/backport to stable32 |
Activity | ||||||||||||||||||||||||||||
| Project | Activity |
| Branch Review | perf/noid/add-where-index |
| Run status | |
| Run duration | 02m 02s |
| Commit | |
| Committer | Anna |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
0 | |
0 | |
1 | |
0 | |
9 | |
| View all changes introduced in this branch ↗︎ | |
4fd77a2 to
9f6f613Compare
Altahrim
left a comment
There was a problem hiding this comment.
Can we have an object_id with two different object_type?
Uh oh!
There was an error while loading. Please reload this page.
ChristophWurst
commented
Mar 10, 2026
I'm slightly doubtful about this with oc_activity usually being one of the biggest table of a Nextcloud deployment. We have a mechanism for optional indices. Why not use that? |
miaulalala
commented
Mar 10, 2026
The query index specifically accelerates the per-object activity stream — the query that runs when a user opens the activity sidebar on a file or share. Putting it in a repair step for the missing indices works as well, I don't have any preference. |
9f6f613 to
cf3aa58Compare
ChristophWurst
left a comment
There was a problem hiding this comment.
The index will be missing for fresh installs unless you edit the migration that creates the table
Signed-off-by: Anna Larch <anna@nextcloud.com>
e2f78f5 to
fe85d50Comparemiaulalala
commented
Mar 10, 2026
/backport to stable32 |
This index:
Added it to the occ command for missing indices instead of running as a migration.