summaryrefslogtreecommitdiff
path: root/plugins/kolab_tags/lib/kolab_tags_backend.php
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-08-03 13:02:48 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2014-08-03 13:02:48 (GMT)
commit6f8f485c877210c4f2f030b33ef6dda39d65887f (patch)
tree653583cc329a8b309343e970990b107d954b3751 /plugins/kolab_tags/lib/kolab_tags_backend.php
parent8fe64d74005f28efd5da62ef755ffd5ce00c0c6f (diff)
downloadroundcubemail-plugins-kolab-6f8f485c877210c4f2f030b33ef6dda39d65887f.tar.gz
Fix performance of fetching configuration and relation objects (skip count query)
Diffstat (limited to 'plugins/kolab_tags/lib/kolab_tags_backend.php')
-rw-r--r--plugins/kolab_tags/lib/kolab_tags_backend.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/kolab_tags/lib/kolab_tags_backend.php b/plugins/kolab_tags/lib/kolab_tags_backend.php
index 032215d..519f962 100644
--- a/plugins/kolab_tags/lib/kolab_tags_backend.php
+++ b/plugins/kolab_tags/lib/kolab_tags_backend.php
@@ -43,7 +43,9 @@ class kolab_tags_backend
$filter[] = array('type', '=', self::O_TYPE);
$cat_filter = array('category' => self::O_CATEGORY);
- return $config->get_objects($filter, $default, $cat_filter);
+ // for performance reasons assume there will be no more than 100 tags (per-folder)
+
+ return $config->get_objects($filter, $default, $cat_filter, 100);
}
/**