Re: Caching of Ldap groups

Michael M Slusarz <[email protected]>
Newsgroups gmane.comp.horde.devel
Message-ID <20140428150355.Horde.sonjXMc9gdq43nRmZipgOg5@bigworm.curecanti.org>
Quoting Lukas Macura <[email protected]>:

> 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 [[email protected]]

-- 
dev mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.