nextcloud/lib/private
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 +00:00
..
Accounts Add default values when parsing account data 2018-12-24 13:19:38 +00:00
Activity Set false as default for requirePNG 2019-02-19 13:59:01 +00:00
App Remove Google+ from Social Sharing Bundle (2) 2019-03-08 08:06:52 +00:00
AppFramework Check the actual status code for 204 and 304 2019-05-24 17:52:33 +00:00
Archive move log constants to ILogger 2018-04-26 10:45:52 +02:00
Authentication Clean pending 2FA authentication on password reset 2019-01-30 10:41:09 +01:00
BackgroundJob Fix integer background job id type error 2019-01-15 14:32:00 +00:00
Cache remove unneeded is_dir from file cache gc 2018-05-24 14:24:10 +02:00
Calendar RoomManager/ResourceManager: Inject IServerContainer instead of using OC Server 2018-10-08 01:50:17 +02:00
Collaboration Always query lookup server in GS mode 2019-02-25 09:24:30 +00:00
Command Use ::class statement instead of string 2018-01-29 12:03:47 +01:00
Comments Rewrite getNumberOfUnreadCommentsForFolder query 2019-01-03 16:10:13 +00:00
Console Refactor some code 2018-08-21 09:51:05 +02:00
Contacts/ContactsMenu Don't fail contacts menu on unkown user 2018-07-19 11:39:28 +02:00
Dashboard include dashboard into core 2018-10-15 19:59:27 +02:00
DB Allow to use Subqueries in from 2019-04-17 15:33:57 +02:00
Diagnostics Update license headers 2017-11-06 16:56:19 +01:00
Encryption Add interface to allow storages from opting out of encryption 2018-11-27 16:56:48 +01:00
Federation translate nextcloud share types to OCM share types 2018-07-11 10:11:45 +02:00
Files Do not keep searching for recent 2019-07-17 05:48:53 +00:00
FullTextSearch using the createIndex from FullTextSearchManager 2018-12-19 11:27:37 -01:00
GlobalScale Update license headers 2017-11-06 16:56:19 +01:00
Group Merge pull request #12419 from nextcloud/bugfix/noid/group-creation-replace-insertIfNotExist 2018-11-12 21:14:38 +01:00
Hooks Fix PHP doc for API docs 2017-12-03 12:02:29 +01:00
Http HttpClient getHeader can return empty string 2019-01-08 15:26:23 +00:00
IntegrityCheck Handle strict typing in Checker and fix tests 2018-02-21 21:09:08 +01:00
L10N Typehint 2018-09-10 11:17:03 +02:00
legacy Prevent faulty logs from nested setupFS calls 2019-06-21 10:02:23 +00:00
Lock Merge pull request #11942 from nextcloud/techdebt/noid/use-count-function 2018-11-12 17:43:56 +01:00
Lockdown Update license headers 2017-11-06 16:56:19 +01:00
Log fix class might be undefined 2019-05-09 11:25:54 +02:00
Mail changed order of methods 2019-02-26 13:42:41 +00:00
Memcache Drop support for xcache 2018-08-12 17:14:08 +02:00
Migration Update license headers 2017-11-06 16:56:19 +01:00
Notification Add return types and fully qualified function calls 2018-07-13 13:27:52 +02:00
OCS Allow to skip retrieving from cache in the DiscoveryService 2018-04-18 19:18:34 +02:00
Preview Only generate previews in powers of 4 and set min 2018-10-31 19:34:42 +01:00
Remote Add some more tests for ocs remote api 2017-12-08 16:37:14 +01:00
Repair Fix notification casting 2019-07-03 20:32:45 +02:00
RichObjectStrings Validate all rich objects not only the used ones 2018-12-05 20:06:09 +01:00
Route Use type casting instead of *val() method 2018-01-26 11:35:42 +01:00
Search Update license headers 2017-11-06 16:56:19 +01:00
Security Fix the thorrtler whitelist bitmask 2019-02-12 07:56:07 +00:00
Session replace setcookie value with '' instead of null. 2018-09-06 20:34:16 +02:00
Settings Fix l10n for SettingsManager by injecting the l10n factory 2019-05-21 22:52:06 +00:00
Setup Use empty instead ?? because dbname is '' sometimes 2018-09-23 18:25:48 +02:00
Share Cleanup some unused sharing methods from the old sharing code 2018-11-02 10:49:42 +01:00
Share20 Unify the permission checking in one place only 2019-07-03 21:31:40 +02:00
Support/CrashReport Fix @since version on new API 2018-09-05 20:58:39 +02:00
SystemTag Use the defined func()->count() instead of manual counting 2018-11-08 15:44:45 +01:00
Tagging Use ::class statement instead of string 2018-01-29 12:03:47 +01:00
Template Fall back to black for non-color values 2019-06-26 08:18:31 +00:00
Updater Backend work to provide NC whats New info to users 2018-07-05 14:33:08 +02:00
User Do not allow invalid users to be created 2019-04-15 09:04:32 +02:00
AllConfig.php Use a case insensitive search for email 2018-12-20 15:19:15 +00:00
AppConfig.php using isset() 2018-02-05 10:50:32 +01:00
Avatar.php Clear avatar cache with frontend repair 2018-11-08 08:31:21 +01:00
AvatarManager.php Clear avatar cache with frontend repair 2018-11-08 08:31:21 +01:00
CapabilitiesManager.php move log constants to ILogger 2018-04-26 10:45:52 +02:00
Color.php Fix autoloader 2018-04-12 16:24:44 +02:00
Config.php Fix some typos 2018-03-21 14:30:56 +01:00
ContactsManager.php Fix others 2016-07-21 18:13:57 +02:00
DatabaseException.php Remove unneeded parameter in DatabaseException 2017-07-24 13:44:12 +02:00
DatabaseSetupException.php Fix others 2016-07-21 18:13:57 +02:00
DateTimeFormatter.php Update license headers 2017-11-06 16:56:19 +01:00
DateTimeZone.php move log constants to ILogger 2018-04-26 10:45:52 +02:00
ForbiddenException.php Fix others 2016-07-21 18:13:57 +02:00
HintException.php Update license headers 2017-11-06 16:56:19 +01:00
Installer.php There is no update available if the app didnt have a version (aka was not installed) 2018-08-02 14:27:16 +02:00
LargeFileHelper.php Make LargeFileHelper.php faster by avoiding execs as much as possible 2018-05-17 14:28:32 +02:00
Log.php Add breadcrumb support to crash reporters 2018-09-05 20:58:39 +02:00
MemoryInfo.php Adds license to files. Updates the branch. 2018-08-20 20:46:23 +02:00
NaturalSort.php move log constants to ILogger 2018-04-26 10:45:52 +02:00
NaturalSort_DefaultCollator.php Fix others 2016-07-21 18:13:57 +02:00
NavigationManager.php Generate id for navigation item 2019-02-27 15:09:32 +00:00
NeedsUpdateException.php Update with robin 2016-07-21 18:13:58 +02:00
NotSquareException.php Fix others 2016-07-21 18:13:57 +02:00
PreviewManager.php Allow the creationg of previews of files stored in appdata 2018-10-08 19:37:45 +02:00
PreviewNotAvailableException.php Opening the trashbin causes errors in log for files without preview 2016-09-09 13:53:06 +02:00
RedisFactory.php Allow redis cluster to use password 2019-05-22 11:48:18 +00:00
Repair.php Repair step for link shares 2019-04-17 15:33:57 +02:00
RepairException.php Fix others 2016-07-21 18:13:57 +02:00
Search.php Removed deprecated search function from ISearch 2018-01-13 19:27:25 +01:00
Server.php Fix l10n for SettingsManager by injecting the l10n factory 2019-05-21 22:52:06 +00:00
ServerContainer.php Fix missing argument 2 for Settings classes 2017-05-19 22:32:50 +02:00
ServerNotAvailableException.php Fix others 2016-07-21 18:13:57 +02:00
ServiceUnavailableException.php Update with robin 2016-07-21 18:13:58 +02:00
Setup.php make sure that the ocm end-point discovery /ocm-provider is not redirected to the index.php 2019-02-20 15:41:38 +01:00
Streamer.php Use zip32 only if there are less than 65536 files 2018-04-06 15:59:30 +02:00
SubAdmin.php Use group displayNames in users list 2018-03-08 17:13:49 +01:00
SystemConfig.php Merge pull request #7020 from Fiech/master 2017-11-07 10:27:53 +01:00
TagManager.php Fix others 2016-07-21 18:13:57 +02:00
Tags.php Check if the favorite tag exists 2018-07-26 15:33:26 +02:00
TemplateLayout.php Fix "Undefined index: user_uid" on login page 2019-02-22 11:43:13 +00:00
TempManager.php Update license headers 2017-11-06 16:56:19 +01:00
Updater.php Block install without CAN_INSTALL file 2019-04-15 12:24:12 +00:00
URLGenerator.php Allow empty strings in getAbsoluteURL 2018-11-20 13:36:16 +01:00