server/lib
Roeland Jago Douma 8e6ac9d678 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:47:57 +00:00
..
composer Try to delete the cypress folder of the viewer app 2019-07-08 17:19:34 +00:00
l10n [tx-robot] updated from transifex 2019-07-12 02:15:09 +00:00
private Do not keep searching for recent 2019-07-17 05:47:57 +00:00
public Allow apps to store longer messages in the comments API 2019-06-27 08:05:02 +00:00
autoloader.php move log constants to ILogger 2018-04-26 10:45:52 +02:00
base.php Fix placeholder in disable message 2019-03-25 16:04:39 +01:00
versioncheck.php NC16 is php >= 7.1 2018-12-21 16:04:11 +01:00