nextcloud/lib/private/Files/Node
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
..
File.php Add getExtension() to FileInfo 2018-10-29 15:24:02 +01:00
Folder.php Do not keep searching for recent 2019-07-16 19:14:55 +02:00
HookConnector.php Emit read for nodes 2018-03-15 11:18:39 +01:00
LazyRoot.php add option to get raw size (without submounts) from fileinfo 2019-02-27 15:35:44 +01:00
Node.php allow renaming the root of a movable mount even if the parent folder is readonly 2019-03-14 15:27:25 +01:00
NonExistingFile.php add option to get raw size (without submounts) from fileinfo 2019-02-27 15:35:44 +01:00
NonExistingFolder.php add option to get raw size (without submounts) from fileinfo 2019-02-27 15:35:44 +01:00
Root.php add option to get raw size (without submounts) from fileinfo 2019-02-27 15:35:44 +01:00