nextcloud/lib/private/Files
Roeland Jago Douma d115e7f802 Do not keep searching for recent
If userA has a lot of recent files. But only shares 1 file with userB
(that has no files at all). We could keep searching until we run out of
recent files for userA.

Now assume the inactive userB has 20 incomming shares like that from
different users. getRecent then basically keeps consuming huge amounts
of resources and with each iteration the load on the DB increases
(because of the offset).

This makes sure we do not get more than 3 times the limit we search for
or more than 5 queries.

This means we might miss some recent entries but we should fix that
separatly. This is just to make sure the load on the DB stays sane.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-07-17 05:49:34 +00:00
..
AppData Make Appdata static 2018-05-14 13:25:54 +02:00
Cache Avoid calculating folder size for parent that needs scan. 2019-03-08 08:14:33 +00:00
Config more efficient way to detect added and removed mounts 2018-08-16 19:56:49 +02:00
Mount Store user object later in the code 2019-03-26 17:40:31 +01:00
Node Do not keep searching for recent 2019-07-17 05:49:34 +00:00
Notify Add a more powerful notify mechanism 2017-01-27 10:44:33 +01:00
ObjectStore Fix: Check if $this->params['user'] is an array 2019-02-07 13:33:21 +00:00
Search Update license headers 2017-11-06 16:56:19 +01:00
SimpleFS Separate fopen into read and write methods 2018-07-11 12:08:37 +02:00
Storage verify that paths are valid for recursive local move 2019-06-27 14:40:13 +00:00
Stream make file cache updates more robust 2018-07-31 12:24:38 +02:00
Type use insertIfNotExists to store new mimetypes. 2018-08-09 15:20:55 +02:00
Utils Do scan the root storage in background scan 2018-07-24 14:15:27 +02:00
FileInfo.php Update license headers 2017-11-06 16:56:19 +01:00
Filesystem.php move log constants to ILogger 2018-04-26 10:45:52 +02:00
View.php always allow moving mountpoints inside the same mountpoint 2019-03-20 10:00:03 +00:00