nextcloud/lib/private/group
macjohnny 767aa4e35f drastic speedup for nested ldap groups
add a function getUserGroupIds for retrieving group ids instead of group objects. this significantly improves performance when using many (nested) 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-13 00:04:06 +02:00
..
backend.php Remove all occurences of @brief and @returns from PHPDoc 2014-05-19 17:50:53 +02:00
database.php Remove all occurences of @brief and @returns from PHPDoc 2014-05-19 17:50:53 +02:00
dummy.php Remove all occurences of @brief and @returns from PHPDoc 2014-05-19 17:50:53 +02:00
example.php Remove all occurences of @brief and @returns from PHPDoc 2014-05-19 17:50:53 +02:00
group.php make search parameter optional, which is already the case in the medthod it is passed to 2014-06-02 12:53:59 +02:00
interface.php Remove all occurences of @brief and @returns from PHPDoc 2014-05-19 17:50:53 +02:00
manager.php drastic speedup for nested ldap groups 2014-06-13 00:04:06 +02:00
metadata.php fix PHPDoc 2014-06-02 12:53:59 +02:00