nextcloud-server/lib/private/Files/Node
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 +07:00
..
File.php Add getExtension() to FileInfo 2018-10-29 15:24:02 +07:00
Folder.php Do not keep searching for recent 2019-07-17 05:48:53 +07:00
HookConnector.php Emit read for nodes 2018-03-15 11:18:39 +07:00
LazyRoot.php Add getExtension() to FileInfo 2018-10-29 15:24:02 +07:00
Node.php Add getExtension() to FileInfo 2018-10-29 15:24:02 +07:00
NonExistingFile.php Update with robin 2016-07-21 18:13:58 +07:00
NonExistingFolder.php Update with robin 2016-07-21 18:13:58 +07:00
Root.php Fix string doc type casing 2018-11-15 11:57:05 +07:00