Skip to content

[stable33] perf(sharing): Avoid loading all shares from all users when unsharing - #58658

Merged
AndyScherzinger merged 2 commits into
stable33from
backport/58057/stable33
Mar 3, 2026
Merged

[stable33] perf(sharing): Avoid loading all shares from all users when unsharing#58658
AndyScherzinger merged 2 commits into
stable33from
backport/58057/stable33

Conversation

@backportbot

@backportbotbackportbotBot commented Mar 2, 2026

Copy link
Copy Markdown

Backport of #58057

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

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
CarlSchwanforce-pushed the backport/58057/stable33 branch from 653efb2 to 212ea44CompareMarch 2, 2026 11:38
@CarlSchwan
CarlSchwan marked this pull request as ready for review March 2, 2026 11:40
@CarlSchwan
CarlSchwan requested a review from a team as a code ownerMarch 2, 2026 11:40
@CarlSchwan
CarlSchwan requested review from Altahrim, ArtificialOwl and icewind1991 and removed request for a teamMarch 2, 2026 11:40
@CarlSchwan
CarlSchwanforce-pushed the backport/58057/stable33 branch 2 times, most recently from bfc4183 to f65314cCompareMarch 2, 2026 13:09
Signed-off-by: Carl Schwan <carlschwan@kde.org>
@CarlSchwan
CarlSchwanforce-pushed the backport/58057/stable33 branch from f65314c to 94c4235CompareMarch 2, 2026 15:07
@AndyScherzinger
AndyScherzinger merged commit e3d0ead into stable33Mar 3, 2026
216 of 223 checks passed
@AndyScherzinger
AndyScherzinger deleted the backport/58057/stable33 branch March 3, 2026 06:47
@skjnldsvskjnldsv mentioned this pull request Mar 18, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsperformance 🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@CarlSchwan@cristianscheid@AndyScherzinger