nextcloud/lib/private/Files
Roeland Jago Douma 8ca2b31804
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-16 19:14:55 +02:00
..
AppData Followup 12833, gracefully handle the getting of / 2018-12-21 11:08:19 +01:00
Cache remove extra param in cache update call 2019-05-07 14:53:02 +02: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-21 21:57:47 +01:00
Node Do not keep searching for recent 2019-07-16 19:14:55 +02:00
Notify Add a more powerful notify mechanism 2017-01-27 10:44:33 +01:00
ObjectStore Use HTTP1.1 to read S3 objects 2019-07-10 11:42:22 +02:00
Search Update license headers 2017-11-06 16:56:19 +01:00
SimpleFS Harden appdata putcontent 2019-04-08 13:22:00 +02:00
Storage verify that paths are valid for recursive local move 2019-06-27 11:10:08 +02:00
Stream Use CountWrapper instead of almost identical CountReadStream 2019-02-15 13:24:58 +01:00
Type Do not fail integrity check if mimetype list is changed 2019-05-29 22:43:23 +02:00
Utils Do scan the root storage in background scan 2018-07-24 14:15:27 +02:00
FileInfo.php add option to get raw size (without submounts) from fileinfo 2019-02-27 15:35:44 +01:00
Filesystem.php Fix string doc type casing 2018-11-15 11:57:05 +01:00
View.php Merge pull request #15832 from nextcloud/bugfix/noid/fulltext-search-groupfolders 2019-06-25 21:43:37 +02:00