server/lib/private
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
..
Accounts Add default values when parsing account data 2018-12-23 16:33:02 +01:00
Activity Set false as default for requirePNG 2019-02-18 00:13:02 +01:00
App Enable pre-releases for beta and daily channel 2019-04-08 15:23:44 +02:00
AppFramework Check the actual status code for 204 and 304 2019-05-24 17:51:52 +00:00
Archive Cleanup some PHPDoc leftovers and unused variables 2019-03-06 15:43:56 +01:00
Authentication Add interface INamedToken 2019-02-02 20:21:57 +01:00
Avatar Don't get the avatar when we don't operate anyway 2019-04-09 11:23:06 +02:00
BackgroundJob Fix integer background job id type error 2019-01-15 14:36:03 +01:00
Cache
Calendar
Collaboration Set type for access column on cacheAccessForCollection 2019-05-07 22:07:54 +00:00
Command
Comments Allow apps to overwrite the maximum length when reading from database 2019-07-01 14:39:54 +00:00
Console Make sure maintenance mode is always casted to bool 2019-02-22 08:25:41 +01:00
Contacts/ContactsMenu
Dashboard include dashboard into core 2018-10-15 19:59:27 +02:00
DB Remove the custom prefix from the table name length when checking on the default primary index 2019-04-30 12:20:31 +00:00
Diagnostics
Encryption list files which could not be decrypted 2018-12-14 12:00:49 +01:00
Federation According to the OCM specification the body needs to be JSON encoded 2019-02-19 17:32:01 +01:00
Files Do not keep searching for recent 2019-07-17 05:47:57 +00:00
FullTextSearch addsubtag should push to array 2019-07-15 06:45:58 +00:00
GlobalScale
Group Add dispatcher events to User and Group objects 2019-03-01 20:56:59 +01:00
Hooks
Http HttpClient getHeader can return empty string 2019-01-08 14:14:59 +01:00
IntegrityCheck Remove the upload and memory setting 2019-03-04 12:14:22 +01:00
L10N
legacy Prevent faulty logs from nested setupFS calls 2019-06-21 10:01:28 +00:00
Lock Code cleanup. 2019-03-21 11:42:00 +01:00
Lockdown
Log fix class might be undefined 2019-05-08 13:52:11 +00:00
Mail changed order of methods 2019-02-26 00:24:46 +01:00
Memcache
Migration Properly inject EventDispatched in BackgroundRepair 2019-03-22 10:29:36 +01:00
Notification Revert "[stable16] Fix userid casting in notifications" 2019-06-25 12:39:40 +02:00
OCS
Preview Reduce text size of text file preview, fix #13720 2019-01-23 15:37:08 +01:00
Remote
Repair Log RuntimeException in CleanupCardDAVPhotoCache 2019-07-16 06:06:01 +00:00
RichObjectStrings Validate all rich objects not only the used ones 2018-11-23 12:39:02 +01:00
Route Make sure maintenance mode is always casted to bool 2019-02-22 08:25:41 +01:00
Search
Security Merge pull request #13327 from nextcloud/allow-bracket-notation-for-remove-ipv6-address 2019-03-06 10:34:02 +01:00
Session
Settings Fix l10n for SettingsManager by injecting the l10n factory 2019-05-21 22:51:26 +00:00
Setup Cleanup some PHPDoc leftovers and unused variables 2019-03-06 15:43:56 +01:00
Share Move merged-share-backend to webpack 2019-01-16 10:03:21 +01:00
Share20 Always set the display name for user shares 2019-07-05 12:53:45 +00:00
Support Add interfaces to interact with subscription from support app 2019-05-13 11:34:59 +00:00
SystemTag Use the defined func()->count() instead of manual counting 2018-11-08 15:44:45 +01:00
Tagging
Template Fall back to black for non-color values 2019-06-26 08:18:17 +00:00
Updater
User remove obsolete use statements 2019-04-24 18:02:15 +00:00
AllConfig.php Add methods to get casted system values 2019-02-22 08:25:41 +01:00
AppConfig.php
CapabilitiesManager.php
Color.php
Config.php Remove deleteFromOpcodeCache & clearOpcodeCache 2019-01-30 17:36:14 +01:00
ContactsManager.php Allow access to addressbook unique uri 2019-01-22 10:03:56 +01:00
DatabaseException.php
DatabaseSetupException.php
DateTimeFormatter.php
DateTimeZone.php
ForbiddenException.php
HintException.php
InitialStateService.php Add a key parameter to the new initial state API 2019-01-30 16:08:08 +01:00
Installer.php Check if elements are set in installer 2019-03-22 16:54:35 +01:00
LargeFileHelper.php
Log.php
MemoryInfo.php
NaturalSort.php
NaturalSort_DefaultCollator.php
NavigationManager.php Generate id for navigation item 2019-02-25 14:49:51 +01:00
NeedsUpdateException.php
NotSquareException.php
PreviewManager.php Allow the creationg of previews of files stored in appdata 2018-10-08 19:37:45 +02:00
PreviewNotAvailableException.php
RedisFactory.php Allow redis cluster to use password 2019-05-22 11:48:04 +00:00
Repair.php Try to delete the cypress folder of the viewer app 2019-07-08 17:19:34 +00:00
RepairException.php
Search.php
Server.php Fix l10n for SettingsManager by injecting the l10n factory 2019-05-21 22:51:26 +00:00
ServerContainer.php Make the file strict 2019-03-05 18:01:14 +01:00
ServerNotAvailableException.php
ServiceUnavailableException.php
Setup.php make sure that the ocm end-point discovery /ocm-provider is not redirected to the index.php 2019-02-20 10:35:14 +01:00
Streamer.php
SubAdmin.php Expose subadmin to OCP 2019-01-29 20:47:35 +01:00
SystemConfig.php
TagManager.php
Tags.php
TemplateLayout.php Fix "Undefined index: user_uid" on login page 2019-02-22 08:33:32 +01:00
TempManager.php
Updater.php Block install without CAN_INSTALL file 2019-04-11 09:32:33 +02:00
URLGenerator.php Allow empty strings in getAbsoluteURL 2018-11-20 13:36:16 +01:00