nextcloud/lib/private
macjohnny 0af8aa689f drastic speedup for nested ldap groups
Changes a function call in getUserGroups to only retrieve group ids instead of objects.
this change significantly improves performance when using owncloud with many groups, e.g. nested ldap hierarchy (1.2.840.113556.1.4.1941), since getUserGroups gets called in oc_share::getItems, which is needed for every page request.
in my particular case, it took more than 10s to load the calendar page and more than 6s to load the file page.
this was in an environment with 100 user groups (nested) per user. The performance was bad due to the following call stack:
self::getManager()->getUserGroups($user)
  - getGroupObject() (executed for every group!)
     - groupExists() (resulting in many ldap-requests)
since the groups are loaded from ldap, it is unnecessary to check whether the group exists or not.
2014-06-12 09:51:23 +02:00
..
appframework Fixed array_combine for PHP 5.3 2014-06-11 19:13:49 +02:00
archive Fix all PHPDoc types and variable names, in /lib 2014-05-13 19:08:14 +01:00
backgroundjob Support having legacy `OC_Cache_FileGlobalGC` background jobs 2014-06-03 11:01:01 +02:00
cache Fix all PHPDoc types and variable names, in /lib 2014-05-13 19:08:14 +01:00
connector/sabre Merge pull request #8666 from owncloud/mount-remove 2014-06-06 11:57:43 +02:00
db adding PK to table encryption 2014-06-06 13:33:56 +02:00
fileproxy move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
files Merge pull request #8901 from owncloud/permissions-update-cache 2014-06-11 18:28:55 +02:00
group Update manager.php 2014-06-12 09:41:23 +02:00
hooks polish documentation based on scrutinizer patches 2014-02-06 17:02:21 +01:00
l10n Fix all PHPDoc types and variable names, in /lib 2014-05-13 19:08:14 +01:00
legacy fix namespace for legacy search classes 2014-06-06 11:01:35 +02:00
log Don't error out on console. 2014-06-04 07:55:45 +02:00
memcache Memcached hasKey should test for success, the get can fail for other reasons. 2014-05-08 18:11:29 +02:00
migration Remove all occurences of @brief and @returns from PHPDoc 2014-05-19 17:50:53 +02:00
ocs Fix all PHPDoc types and variable names, in /lib 2014-05-13 19:08:14 +01:00
preview make text preview backend use imagettftext, fixes #8087 2014-06-10 17:29:40 +02:00
route Remove legacy routing code 2014-06-05 11:45:45 +02:00
search make search non-static, add ISearch to server container, make legacy a static wrapper for it, move provider and result to public api 2014-06-06 01:17:02 +02:00
session redefine reopen() in class \OC\Session\Internal to avoid accidental calls in productive code 2014-03-18 11:44:22 +01:00
setup Merge pull request #6632 from eduardosan/master 2014-03-12 18:52:47 +01:00
share Added ORDER BY to enforce share entry order 2014-06-11 14:28:30 +02:00
template Remove all occurences of @brief and @returns from PHPDoc 2014-05-19 17:50:53 +02:00
user this line was lost on rebase 2014-06-02 13:22:06 +02:00
vobject move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
activitymanager.php Some more PHPDoc fixes 2014-04-21 15:44:54 +02:00
allconfig.php $default of OC_Config::[gs]etValue can have more then string as type 2014-02-12 17:38:32 +01:00
api.php Some more PHPDoc fixes 2014-04-21 15:44:54 +02:00
app.php Simulate apps database schema update on upgrade 2014-06-04 17:16:44 +02:00
appconfig.php Use a map to prevent having to use search 2014-06-03 12:40:23 +02:00
apphelper.php moving file to the right location 2013-10-07 00:32:39 +02:00
archive.php Some more PHPDoc fixes 2014-04-21 15:44:54 +02:00
arrayparser.php Some more PHPDoc fixes 2014-04-21 15:44:54 +02:00
avatar.php Remove all occurences of @brief and @returns from PHPDoc 2014-05-19 17:50:53 +02:00
avatarmanager.php Remove all occurences of @brief and @returns from PHPDoc 2014-05-19 17:50:53 +02:00
backgroundjob.php Remove all occurences of @brief and @returns from PHPDoc 2014-05-19 17:50:53 +02:00
cache.php More PHPDoc fixes, using scrutinizer patches as hints 2014-02-28 13:53:41 +01:00
config.php Remove all occurences of @brief and @returns from PHPDoc 2014-05-19 17:50:53 +02:00
contactsmanager.php Merge branch 'master' into contactsmanager-register 2014-05-19 21:35:13 +02:00
davclient.php Upgrade SabreDAV to 1.8.10 2014-06-04 12:22:23 +02:00
db.php Removed simulate db update flag and split into separate methods 2014-06-04 18:17:46 +02:00
defaults.php Fix all PHPDoc types and variable names, in /lib 2014-05-13 19:08:14 +01:00
eventsource.php sanitize fallbackId 2014-03-12 00:18:51 +01:00
filechunking.php Fix PHPdoc in lib/private 2014-04-15 22:55:20 +02:00
fileproxy.php Fix all PHPDoc types and variable names, in /lib 2014-05-13 19:08:14 +01:00
files.php drop allowZIPdownload and maxZIPSize as options 2014-06-02 16:29:03 +02:00
forbiddenexception.php Cache folder is now configurable 2014-03-24 12:57:11 +01:00
geo.php Remove all occurences of @brief and @returns from PHPDoc 2014-05-19 17:50:53 +02:00
group.php drastic speedup for nested ldap groups 2014-06-12 09:51:23 +02:00
helper.php Added hacky fix for long path cleanup routine 2014-06-06 10:41:49 +02:00
hintexception.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
hook.php Dont connect hooks twice 2014-06-06 09:56:02 +02:00
image.php Remove all occurences of @brief and @returns from PHPDoc 2014-05-19 17:50:53 +02:00
installer.php Added requiremin/requiremax fields for apps 2014-05-27 11:54:12 +02:00
json.php Some more PHPDoc fixes 2014-04-21 15:44:54 +02:00
l10n.php Remove all occurences of @brief and @returns from PHPDoc 2014-05-19 17:50:53 +02:00
largefilehelper.php Document exceptions thrown by \OC\LargeFileHelper. 2014-05-29 16:26:02 +02:00
log.php fix missing spaces 2014-05-12 13:32:03 +02:00
mail.php upgraded phpmailer into v5.2.8 via composer 2014-05-27 23:33:18 +02:00
migrate.php Remove all occurences of @brief and @returns from PHPDoc 2014-05-19 17:50:53 +02:00
mimetypes.list.php add more and fix office mimetypes, migrate wrong mimetypes 2014-06-06 12:00:25 +02:00
navigationmanager.php Remove all occurences of @brief and @returns from PHPDoc 2014-05-19 17:50:53 +02:00
notsquareexception.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
ocs.php Fix all PHPDoc types and variable names, in /lib 2014-05-13 19:08:14 +01:00
ocsclient.php Remove all occurences of @brief and @returns from PHPDoc 2014-05-19 17:50:53 +02:00
preferences.php allow to set pre-condition for setValue 2014-06-05 16:54:03 +02:00
preview.php Remove all occurences of @brief and @returns from PHPDoc 2014-05-19 17:50:53 +02:00
previewmanager.php Remove all occurences of @brief and @returns from PHPDoc 2014-05-19 17:50:53 +02:00
repair.php Add a (currently) empty system for running common repair steps 2013-11-26 14:12:48 +01:00
request.php Upgrade SabreDAV to 1.8.10 2014-06-04 12:22:23 +02:00
response.php Merge branch 'master' into cleanup-list-code 2014-05-19 20:52:25 +02:00
search.php make search non-static, add ISearch to server container, make legacy a static wrapper for it, move provider and result to public api 2014-06-06 01:17:02 +02:00
server.php make search non-static, add ISearch to server container, make legacy a static wrapper for it, move provider and result to public api 2014-06-06 01:17:02 +02:00
setup.php Remove all occurences of @brief and @returns from PHPDoc 2014-05-19 17:50:53 +02:00
subadmin.php Remove all occurences of @brief and @returns from PHPDoc 2014-05-19 17:50:53 +02:00
tagmanager.php reorganize file in lib 2013-09-30 16:39:03 +02:00
tags.php Fix all PHPDoc types and variable names, in /lib 2014-05-13 19:08:14 +01:00
template.php Remove all occurences of @brief and @returns from PHPDoc 2014-05-19 17:50:53 +02:00
templatelayout.php Now settings CSS class with appid in content DIV 2014-05-15 17:51:04 +02:00
updater.php adding PK to table encryption 2014-06-06 13:33:56 +02:00
urlgenerator.php Remove all occurences of @brief and @returns from PHPDoc 2014-05-19 17:50:53 +02:00
user.php Merge pull request #8443 from owncloud/csrf-on-login-and-logout 2014-06-02 11:27:20 +02:00
util.php Remove legacy routing code 2014-06-05 11:45:45 +02:00
vobject.php Remove all occurences of @brief and @returns from PHPDoc 2014-05-19 17:50:53 +02:00