Skip to content

perf(share): stop over-fetching grouped shared-with results#61754

Open
joshtrichards wants to merge 1 commit into
masterfrom
jtr/perf-share-getSharedWith
Open

perf(share): stop over-fetching grouped shared-with results#61754
joshtrichards wants to merge 1 commit into
masterfrom
jtr/perf-share-getSharedWith

Conversation

@joshtrichards

@joshtrichards joshtrichards commented Jul 3, 2026

Copy link
Copy Markdown
Member

Summary

Fix the group branch so it uses the accumulated grouped-share count and stop scanning once offset + limit unique shares are collected.

The previous logic used count($shares), which stays empty until after group share resolution, so each chunk could query up to the full limit. This caused unnecessary DB work for users in many groups.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Signed-off-by: Josh <josh.t.richards@gmail.com>
@joshtrichards joshtrichards added this to the Nextcloud 35 milestone Jul 3, 2026
@joshtrichards joshtrichards marked this pull request as ready for review July 3, 2026 17:42
@joshtrichards joshtrichards requested a review from a team as a code owner July 3, 2026 17:42
@joshtrichards joshtrichards requested review from Altahrim, come-nc, leftybournes and salmart-dev and removed request for a team July 3, 2026 17:42
@joshtrichards joshtrichards added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jul 3, 2026
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.

1 participant