Skip to content

perf: swap around root_id and mount_path_hash in index#59652

Open
icewind1991 wants to merge 1 commit intomasterfrom
mounts-index-swap-path_root
Open

perf: swap around root_id and mount_path_hash in index#59652
icewind1991 wants to merge 1 commit intomasterfrom
mounts-index-swap-path_root

Conversation

@icewind1991
Copy link
Copy Markdown
Member

There is currently no place (outside of tests) where we filter by just the user and root_id, but there are places (and more with #59649) where we filter by just user and mountpoint.

By moving the two columns around in the index we ensure that the index can be better used for those queries.

@icewind1991 icewind1991 added this to the Nextcloud 34 milestone Apr 15, 2026
@icewind1991 icewind1991 requested a review from a team as a code owner April 15, 2026 14:31
@icewind1991 icewind1991 requested review from Altahrim, ArtificialOwl, salmart-dev and sorbaugh and removed request for a team April 15, 2026 14:31
@icewind1991 icewind1991 force-pushed the mounts-index-swap-path_root branch from 0dcb63a to 13ce0ad Compare April 15, 2026 15:15
Comment thread core/Migrations/Version34000Date20260415161745.php Outdated
Comment thread core/Migrations/Version34000Date20260415161745.php
Signed-off-by: Robin Appelman <robin@icewind.nl>
@icewind1991 icewind1991 force-pushed the mounts-index-swap-path_root branch from 13ce0ad to 1362b2f Compare April 15, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants