Skip to content

perf: reuse known instantiated storages in SharedMounts#61519

Draft
salmart-dev wants to merge 1 commit into
masterfrom
fix/cache-shared-mount-storages
Draft

perf: reuse known instantiated storages in SharedMounts#61519
salmart-dev wants to merge 1 commit into
masterfrom
fix/cache-shared-mount-storages

Conversation

@salmart-dev

@salmart-dev salmart-dev commented Jun 22, 2026

Copy link
Copy Markdown
Contributor
  • Resolves: #

Summary

Avoids querying over and over the DB to initiate a SharedMount for a storage that is already known. This stops N+1 issues when using instanceOfStorage on SharedStorage for the same root storage through different SharedStorage instances.

TODO

  • Double-check that getting the storage ID in the way I did is okay and behaves as expected with multiple wrappers

Checklist

AI (if applicable)

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

@salmart-dev salmart-dev added this to the Nextcloud 35 milestone Jun 22, 2026
@salmart-dev salmart-dev self-assigned this Jun 22, 2026
Base automatically changed from fix/noserverget-shares to master June 23, 2026 08:39
Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
@salmart-dev salmart-dev force-pushed the fix/cache-shared-mount-storages branch from 1ed5568 to be730ae Compare June 23, 2026 12:00
@salmart-dev salmart-dev changed the title perf: reuse known storages in shares perf: reuse known instantiated storages in SharedMounts Jun 23, 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