⚠️ This issue respects the following points: ⚠️
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
|
$mounts = $userMountCache->getMountsForStorageId($node->getStorageId()); |
|
foreach ($mounts as $mount) { |
The query was triggered by "Text" app's rich workspaces:

Expected behavior
User B should not experience that slowness when loading its files
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