Skip to content

[Bug]: Slow query getMountsForStorageId when user has many shared folders #49353

@Ivansss

Description

@Ivansss

⚠️ 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:

Image

Expected behavior

User B should not experience that slowness when loading its files

Metadata

Metadata

Assignees

Type

Projects

Status

🏗️ In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions