nextcloud/lib/private
Roeland Jago Douma d115e7f802 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:49:34 +00:00
..
Accounts Use ::class statement instead of string 2018-01-29 12:03:47 +01:00
Activity Fix default types of activity event member variables 2018-11-08 14:14:01 +01:00
App Remove Google+ from Social Sharing Bundle (2) 2019-03-08 08:06:52 +00:00
AppFramework add global site selector as user back-end which doesn't support password confirmation 2018-11-01 10:07:12 +01: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:43:15 +01:00
BackgroundJob Revert "Wait for cron to finish before running upgrade command" 2018-11-01 22:09:45 +01: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-11-22 22:41:29 +00:00
Collaboration some small fixes and improvements 2018-10-10 16:08:49 +02:00
Command Use ::class statement instead of string 2018-01-29 12:03:47 +01:00
Comments Properly escape column name in "createFunction" call 2018-10-19 12:12:52 +02: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
DB Allow to use Subqueries in from 2019-04-17 15:57:20 +02:00
Diagnostics Update license headers 2017-11-06 16:56:19 +01:00
Encryption skip already decrypted files on decrypt all command 2018-10-25 17:52:51 +02: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:49:34 +00:00
GlobalScale Update license headers 2017-11-06 16:56:19 +01:00
Group Properly escape column name in "createFunction" call 2018-10-19 12:12:52 +02:00
Hooks Fix PHP doc for API docs 2017-12-03 12:02:29 +01:00
Http/Client HttpClient getHeader can return empty string 2019-01-08 15:26:32 +00:00
IntegrityCheck Handle strict typing in Checker and fix tests 2018-02-21 21:09:08 +01:00
L10N Typehint 2018-09-19 16:13:19 +02:00
legacy Prevent faulty logs from nested setupFS calls 2019-06-21 10:03:20 +00:00
Lock Fix UniqueConstraintViolationException while insert into oc_file_locks 2018-11-13 13:59:24 +01:00
Lockdown Update license headers 2017-11-06 16:56:19 +01:00
Log fix class might be undefined 2019-05-08 13:53:59 +00:00
Mail Apply patch from @cwiedmann but drop -oi option for pipe 2018-12-08 17:18:04 +01: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 Allow the creationg of previews of files stored in appdata 2018-10-09 11:49:02 +02: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:35:53 +02:00
RichObjectStrings Update license headers 2017-11-06 16:56:19 +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:11 +00:00
Session replace setcookie value with '' instead of null. 2018-09-19 11:47:40 +02:00
Settings Show proper default locale 2019-01-24 07:33:03 +00:00
Setup move log constants to ILogger 2018-04-26 10:45:52 +02:00
Share Add comment with IDs of internal share types 2018-08-08 14:25:43 +02:00
Share20 Unify the permission checking in one place only 2019-07-03 21:33:06 +02:00
Support/CrashReport Fix PHP doc for API docs 2017-12-03 12:02:29 +01:00
SystemTag Make SystemTag strict 2018-02-21 22:08:27 +01:00
Tagging Use ::class statement instead of string 2018-01-29 12:03:47 +01:00
Template [stable15] Fix colorizeSvg with transformations that contain a comma (,) 2019-01-17 16:02:21 +01: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:05:52 +02:00
AllConfig.php Use a case insensitive search for email 2018-12-20 15:19:28 +00:00
AppConfig.php using isset() 2018-02-05 10:50:32 +01:00
Avatar.php get avatar custom status from user config 2018-08-07 14:55:33 +02:00
AvatarManager.php Use \OC\User\Manager internally in the avatarmanager 2018-01-14 21:32:54 +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 Fetch logcondition earlier 2018-07-30 14:57:19 +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:36 +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-09 11:49:02 +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 Update license headers 2017-11-06 16:56:19 +01:00
Repair.php Repair step for link shares 2019-04-17 15:57:16 +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 Reset bruteforce on token refresh OAuth 2018-10-31 10:54:17 +01: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 Backport https://github.com/nextcloud/server/pull/11446 2018-10-11 15:14:33 +02: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 Fallback to $lang if no $locale match 2018-09-19 16:13:22 +02:00
TempManager.php Update license headers 2017-11-06 16:56:19 +01:00
Updater.php Revert "Wait for cron to finish before running upgrade command" 2018-11-01 22:09:45 +01:00
URLGenerator.php Fix check if theming defaults instance is available 2018-02-27 10:15:31 +01:00