diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2014-10-10 21:29:11 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2014-10-17 20:16:04 +0200 |
commit | 4e8c7570d40fd8862b3b45b08d21bc1967779f01 (patch) | |
tree | 2ae09cc21bb68f883913b646c73c2502bf464413 /lib/private/group | |
parent | a7a532f58a8476cb83e8d11f527e1f19d82ef135 (diff) | |
download | nextcloud-server-4e8c7570d40fd8862b3b45b08d21bc1967779f01.tar.gz nextcloud-server-4e8c7570d40fd8862b3b45b08d21bc1967779f01.zip |
make performance less bad. Still far from good, but at least it works
Diffstat (limited to 'lib/private/group')
-rw-r--r-- | lib/private/group/manager.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/group/manager.php b/lib/private/group/manager.php index 33a1904dddf..417be79ab30 100644 --- a/lib/private/group/manager.php +++ b/lib/private/group/manager.php @@ -223,10 +223,9 @@ class Manager extends PublicEmitter implements IGroupManager { if(!empty($search)) { // only user backends have the capability to do a complex search for users $searchOffset = 0; + $searchLimit = $limit * 100; if($limit === -1) { - $searchLimit = $group->count(''); - } else { - $searchLimit = $limit * 2; + $searchLimit = 500; } do { |