summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-08-14 08:06:53 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2020-08-18 05:56:06 +0200
commit6ed4c8a9463d725fafb94a84ca728d57de6e56d1 (patch)
tree614d107b0b6f8e0a2d585c6eb8cec4c36a37a60c /apps/files_sharing/lib
parentc96044085b1de2ab36e9b6204b89da3e683b3717 (diff)
downloadnextcloud-server-6ed4c8a9463d725fafb94a84ca728d57de6e56d1.tar.gz
nextcloud-server-6ed4c8a9463d725fafb94a84ca728d57de6e56d1.zip
Improve recent file fetching
Fixes #16876 Before we'd just fetch everything from all storages we'd have access to. Then we'd sort. And filter in php. Now this of course is tricky if a user shared just a file with you and then has a ton of activity. Now we try to contruct the prefix path. So that the filtering can happen right away in the databae. Now this will make the DB more busy. But it should help overall as in most cases less queries are needed then etc. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r--apps/files_sharing/lib/SharedStorage.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/SharedStorage.php b/apps/files_sharing/lib/SharedStorage.php
index d40e94e36db..7477e5601ff 100644
--- a/apps/files_sharing/lib/SharedStorage.php
+++ b/apps/files_sharing/lib/SharedStorage.php
@@ -505,4 +505,9 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto
public function setMountOptions(array $options) {
$this->mountOptions = $options;
}
+
+ public function getUnjailedPath($path) {
+ $this->init();
+ return parent::getUnjailedPath($path);
+ }
}