mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
Merge pull request #57912 from nextcloud/backport/57815/stable33
[stable33] feat: optimize user mount cache
This commit is contained in:
commit
4e3f0b5a2a
1 changed files with 2 additions and 1 deletions
|
|
@ -382,7 +382,8 @@ class UserMountCache implements IUserMountCache {
|
|||
$query = $builder->select('storage_id', 'root_id', 'user_id', 'mount_point', 'mount_id', 'f.path', 'mount_provider_class')
|
||||
->from('mounts', 'm')
|
||||
->innerJoin('m', 'filecache', 'f', $builder->expr()->eq('m.root_id', 'f.fileid'))
|
||||
->where($builder->expr()->eq('storage_id', $builder->createNamedParameter($storageId, IQueryBuilder::PARAM_INT)))
|
||||
->where($builder->expr()->eq('m.storage_id', $builder->createNamedParameter($storageId, IQueryBuilder::PARAM_INT)))
|
||||
->andWhere($builder->expr()->eq('f.storage', $builder->createNamedParameter($storageId, IQueryBuilder::PARAM_INT)))
|
||||
->andWhere(
|
||||
$builder->expr()->orX(
|
||||
$builder->expr()->eq('f.fileid', $builder->createNamedParameter($fileId)),
|
||||
|
|
|
|||
Loading…
Reference in a new issue