[prev in list] [next in list] [prev in thread] [next in thread]
List: horde-dev
Subject: Re: [dev] Caching of Ldap groups
From: Michael M Slusarz <slusarz () horde ! org>
Date: 2014-04-28 21:03:55
Message-ID: 20140428150355.Horde.sonjXMc9gdq43nRmZipgOg5 () bigworm ! curecanti ! org
[Download RAW message or body]
Quoting Lukas Macura <macura@opf.slu.cz>:
> Hi to all,
>
> we are implementing horde in campus and we use LDAP groups. There
> are big problems with speed, especially in kronolith because of
> ListGroups function which is called many times and each time it
> searches in LDAP.
>
> We made small patch for ./framework/Group/lib/Horde/Group/Ldap.php
> which uses memcache for listGroups. It is much more proof of
> concept, but it helped a lot. Before this patch, kronolith events
> loaded after 12seconds and it took about 50 LDAP searches. Now,
> everything loads up to 2 seconds.
1. Horde_Cache should be used instead of memcache directly.
2. The code should first be refactored to ensure that duplicate LDAP
searches are not occurring in a single access, which is what I believe
you are claiming. Then you would get the 6x speedup pre-caching.
michael
___________________________________
Michael Slusarz [slusarz@horde.org]
--
dev mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: dev-unsubscribe@lists.horde.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic