]> source.dussan.org Git - nextcloud-server.git/commit
Improve recent file fetching 22244/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Fri, 14 Aug 2020 06:06:53 +0000 (08:06 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Tue, 18 Aug 2020 03:56:06 +0000 (05:56 +0200)
commit6ed4c8a9463d725fafb94a84ca728d57de6e56d1
tree614d107b0b6f8e0a2d585c6eb8cec4c36a37a60c
parentc96044085b1de2ab36e9b6204b89da3e683b3717
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>
apps/files_sharing/lib/SharedStorage.php
lib/private/Files/Node/Folder.php