nextcloud/lib/private/Files
Roeland Jago Douma 7bd081ff84 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:48:53 +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-21 21:37:41 +00:00
Node Do not keep searching for recent 2019-07-17 05:48:53 +00:00
Notify Add a more powerful notify mechanism 2017-01-27 10:44:33 +01:00
ObjectStore Always use a temp file for swift writes 2019-04-24 07:02:46 +00:00
Search Update license headers 2017-11-06 16:56:19 +01:00
SimpleFS Harden appdata putcontent 2019-04-08 14:36:37 +00:00
Storage verify that paths are valid for recursive local move 2019-06-27 14:39:32 +00:00
Stream extend storage api to allow directly writing a stream to storage 2018-10-31 21:10:44 +01:00
Type Use the defined func()->count() instead of manual counting 2018-11-08 15:44:45 +01:00
Utils Do scan the root storage in background scan 2018-07-24 14:15:27 +02:00
FileInfo.php Add getExtension() to FileInfo 2018-10-29 15:24:02 +01:00
Filesystem.php Fix string doc type casing 2018-11-15 11:57:05 +01:00
View.php Fix full text search for groupfolders 2019-06-25 19:46:25 +00:00