server/lib
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
..
composer Merge pull request #14228 from nextcloud/feature/noid/add-metadata-etag 2019-07-15 21:37:25 +02:00
l10n [tx-robot] updated from transifex 2019-07-12 02:15:00 +00:00
private Do not keep searching for recent 2019-07-16 19:14:55 +02:00
public new model to manage some simple queries 2019-07-14 19:07:28 -01:00
autoloader.php move log constants to ILogger 2018-04-26 10:45:52 +02:00
base.php Migrate the maintenance script to a modern module and bundle 2019-05-16 16:45:00 +02:00
versioncheck.php NC16 is php >= 7.1 2018-12-21 16:04:11 +01:00