[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Slow openldap?



On Wed, 28 Jul 1999, Borek Lupomesky wrote:

> > Borek Lupomesky schrieb:
> > >    I have over 3000 entries in an LDAP directory (very small ones). When I
> > > do a lookup in this directory the speed is horrible - onelevel lookup
> > > takes 10 seconds:
> > > 
> > > rethymno:~/work/dhcplst-2/ouidb$ time -p ldapsearch -b
> > > 'app=ouidb,ou=ci,ou=rektorat,o=UJEP' -s one -h ldap '(oui=00105A)' dn
> > > oui=00105A,app=ouidb,ou=ci,ou=rektorat,o=UJEP
> > 
> > Are the attributes you search for indexed?
> 
>    No, how do I do that?

First, you have to add the appropriate index configuration lines to your
slapd.conf. 

If you already have your entries stored in the databse, you have to create
the initial index file manually using ldif2index. slapd will only index
new entries automatically. Thus, your queries won't return anything if you
turn indexing on on an existing database.

Gruss

	<-gninneH<-
--
    __                 _  __    __   Henning Holtschneider   henning@loca.net
   / /  ___  _______ _/ |/ /__ / /_  System Administration
  / /__/ _ \/ __/ _ `/    / -_) __/
 /____/\___/\__/\_,_/_/|_/\__/\__/  ...net happens!