Skip to content

fix(files): chunk mounted storage IDs during scans - #64691

Open
joshtrichards wants to merge 2 commits into
masterfrom
jtr/fix-files-chunk-mounted-storage-ids
Open

joshtrichards wants to merge 2 commits into
masterfrom
jtr/fix-files-chunk-mounted-storage-ids

Conversation

@joshtrichards

@joshtrichards joshtrichards commented Sep 23, 2026 •

Copy link
Copy Markdown
Member
  • Resolves: #

Summary

The sharded filecache fallback could bind more than 1,000 mounted storage IDs in a single IN query. Limit each query to IQueryBuilder::MAX_IN_PARAMETERS IDs and continue through subsequent chunks until a user is found. Also adds previously missing test coverage.

TODO

  • ...

Checklist

AI (if applicable)

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

The sharded filecache fallback can bind more than 1,000 mounted storage IDs in a single IN query. Limit each query to IQueryBuilder::MAX_IN_PARAMETERS IDs and continue through subsequent chunks until a user is found.

Signed-off-by: Josh <josh.t.richards@gmail.com>
Cover early success in the initial query and mounted-storage fallback behavior for empty, multi-chunk, and unmatched storage lists.

Assisted-by: Copilot:gpt-6-luna

Signed-off-by: Josh <josh.t.richards@gmail.com>
@joshtrichards joshtrichards added this to the Nextcloud 36 milestone Sep 23, 2026
@joshtrichards joshtrichards added the 3. to review Waiting for reviews label Sep 23, 2026
@joshtrichards
joshtrichards requested a review from a team as a code owner September 23, 2026 14:21
@joshtrichards
joshtrichards requested review from Altahrim, leftybournes, salmart-dev and sorbaugh and removed request for a team September 23, 2026 14:21
@joshtrichards joshtrichards added the technical debt 🧱 🤔🚀 label Sep 23, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews feature: database Database related DB feature: filesystem technical debt 🧱 🤔🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants