[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
LDAP search performance problem
hi all,
while testing a little with openldap 2.1.12 i discovered a strange
behaviour when i'm using the ldapsearch command...
this is the extract of a script which i wrote. showing you the command i
use...
/usr/local/bin/ldapsearch -x -LLL \
-l 0 \
-h $LDAP_SLAVE \
-D $LDAP_USER \
-w $LDAP_PW \
-b $LDAP_RDN,$SMSM_LDAP_BASE \
-f - \
"$FILTER" $ATTRIBUTES
this command is parsing a file with round about 8000 lines and greps a
pattern and puts it into the ldapsearch command (-f) without bind for
every search (right?!). (i tried it without -f and it hangs everytime
exactly eight seconds after some lines of output - therefor i used the
-f switch assuming the delay of eight sec. was caused by the bind
operation)
the search for the 8000 patterns is taking round about 6-7 min... which
is much to long for me... the searchpattern is a string value like
"blabla_bla_blub"
what possibilities do i have to increase the performance of the lookup?
i experimented a little with indexes of the attribute i'm querying but
no noticeable speed increasment.. the host where i'm using the query is
a readonly frontend server - maybe this info helps for setting the right
index.
thanx for your support!
--
mit freundlichem Gruss
best regards,
Carsten Probst
-Systemsadministrator-
net mobile AG
Operations Department
Moersenbroicher Weg 200
40470 Duesseldorf
Germany
fon +49 211 687706-47
fax +49 211 687706-49
mailto:carsten.probst@net-m.de
http://www.net-m.de