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

AW: Faster searches



Hi Andrew,

You wrote 

If you already have the database populated, stop the ldap server and use 
slapindex, then restart.  This will build the index list on an offline 
database.  Although, I have had no luck creating an indexed database 
using slapadd and slapindex.

Could you please explain what do you mean exactly under "having no luck" when using slapindex. Namely I am also interested in better search rates, and any additional input is highly appreciated!

Thanx a lot, Vadim Tarassov.

-----Ursprüngliche Nachricht-----
Von: Andrew Bacchi [mailto:bacchi@rpi.edu]
Gesendet am: Mittwoch, 24. Juli 2002 14:27
An: ISABEL.FALANTES.EXT
Cc: openldap-software@OpenLDAP.org
Betreff: Re: Faster searches

In your slapd.conf file, include the list of objects to index.  Here is my 
index list as an example below.  When you build the database with ldapadd 
the indexes will be created and your searches will go much faster.

If you already have the database populated, stop the ldap server and use 
slapindex, then restart.  This will build the index list on an offline 
database.  Although, I have had no luck creating an indexed database 
using slapadd and slapindex. 

You can delete the entire database in etc/openldap/* and recreate it with 
ldapadd from an ldif file.  It takes me only a couple of minutes to do 
this for 14K users.

# Indices to maintain
index default eq
index uid
index sn
index gidNumber
index uidNumber
index gecos
index loginshell
index homeDirectory
index cn
index objectClass eq


On Wed, 24 Jul 2002, ISABEL.FALANTES.EXT wrote:

> 
> Hello, I'm new in this list and in LDAP's world.
> 
> There is some way to do that searches are faster?
> 
> Thanks in advance, Isa.
> 
> 
> 

-- 
Andrew Bacchi
Staff Systems Programmer
Rensselaer Polytechnic Institute
phone: 518 276-6415  fax: 518 276-2809

http://www.rpi.edu/~bacchi/