Skip to content

perf(sharing): Avoid loading all shares from all users when unsharing#58057

Open
CarlSchwan wants to merge 2 commits intomasterfrom
carl/perf-delete-share
Open

perf(sharing): Avoid loading all shares from all users when unsharing#58057
CarlSchwan wants to merge 2 commits intomasterfrom
carl/perf-delete-share

Conversation

@CarlSchwan
Copy link
Member

Summary

First check which users have a shares and for which providers and then only load these shares.

Avoid doing at most 5 SQL queries for each users a share was shared with if there are no shares.

Checklist

@CarlSchwan CarlSchwan added this to the Nextcloud 34 milestone Feb 4, 2026
@CarlSchwan CarlSchwan self-assigned this Feb 4, 2026
@CarlSchwan CarlSchwan requested a review from a team as a code owner February 4, 2026 14:23
@CarlSchwan CarlSchwan requested review from ArtificialOwl, icewind1991, leftybournes and salmart-dev and removed request for a team February 4, 2026 14:23
First check which users have a shares and for which providers and then
only load these shares.

Avoid doing at most 5 SQL queries for each users a share was shared with if
there are no shares.

Signed-off-by: Carl Schwan <carlschwan@kde.org>
@CarlSchwan CarlSchwan force-pushed the carl/perf-delete-share branch from a6b0c0a to 0676fba Compare February 25, 2026 16:14
Copy link
Contributor

@salmart-dev salmart-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@CarlSchwan CarlSchwan force-pushed the carl/perf-delete-share branch from 205b302 to 981381b Compare February 26, 2026 09:49
Signed-off-by: Carl Schwan <carlschwan@kde.org>
@CarlSchwan CarlSchwan force-pushed the carl/perf-delete-share branch from 981381b to 4acb3b5 Compare February 26, 2026 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants