[Bug]: Slow query getMountsForStorageId when user has many shared folders #49353
Labels
1. to develop
Accepted and waiting to be taken care of
31-feedback
bug
feature: sharing
performance 🚀
Bug description
Detected the issue in the following scenario:
User A has 40K+ shared folders
User A share one of those folders with User B
User B experiences slowness because it has to cope with the 40K+ mount points
server/apps/files_sharing/lib/SharedStorage.php
Lines 443 to 444 in 8995272
The query was triggered by "Text" app's rich workspaces:
Expected behavior
User B should not experience that slowness when loading its files
The text was updated successfully, but these errors were encountered: