[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
LDAP search question
- To: openldap-technical@openldap.org
- Subject: LDAP search question
- From: Tihomir Culjaga <tculjaga@gmail.com>
- Date: Mon, 15 Jun 2009 13:29:42 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=dN0VULD48s79TfpY7TLZbOGcuEUpn3gO924tljL4Mb0=; b=VcDvAPD653Zj5Zu7X4e7+4At0txb7kDLVbaelhhns0mKnH6v2GCtrHczOk4D2KLBup mynLV0k/vxcNiP20MyB6leH0vCwHiaMvz8Qu6mZL7xJIURJvY+8w/MCj0L3zaQojvePa v3vTM0bh4SFEiJAPIy0QehM/ipaZx3JiqHCoY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Vh23XqPG5He5kXxUMLlDlTuKIdEEWK/OFq7InhU67iuo0k+NuAEwHdCuisLvXmkb3y Fqf8qlAOZG4zrsV22xfT8+UBtg2+vz/Yfc+x8KuG1vv5ZbcH87ULd5CWHTi+TgaBaHW5 enO4IYQoFNvO4oLysBRS1eP32NhIVHGKFmT64=
Hello,
maybe it is a dummy question but i'd like to know why i have so big discrepancy in execution between two apparently identical ldapsearch ?
The 1st search takes 94 ms while the 2nd one only 7 ms. It doesn't matter how many times i execute the 1st search (meaning everytihng should be already cached) .. it is always the same.
Does anyone know why?
~$ time ldapsearch -h localhost -x -b ou=redirecting,ou=Dir,dc=ot,dc=hr -D cn=admin,dc=ot,dc=hr -w **** uniqueID=38512303736
# extended LDIF
#
# LDAPv3
# base <ou=redirecting,ou=Dir,dc=ot,dc=hr> with scope subtree
# filter: uniqueID=38512303736
# requesting: ALL
#
# 38512303736, redirecting, Dir, ot.hr
dn: uniqueID=38512303736,ou=redirecting,ou=Dir,dc=ot,dc=hr
objectClass: top
objectClass: uniqueID
Prefix: 68A10
uniqueID: 38512303736
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
real 0m0.094s
user 0m0.004s
sys 0m0.000s
~$ time ldapsearch -h localhost -x -b ou=redirecting,ou=Dir,dc=ot,dc=hr -D cn=admin,dc=ot,dc=hr -w **** uniqueID=38515000400
# extended LDIF
#
# LDAPv3
# base <ou=redirecting,ou=Direktor,dc=ot,dc=hr> with scope subtree
# filter: uniqueID=38515000400
# requesting: ALL
#
# 38515000400, redirecting, Dir, ot.hr
dn: uniqueID=38515000400,ou=redirecting,ou=Dir,dc=ot,dc=hr
objectClass: top
objectClass: uniqueID
Prefix: 68B99
uniqueID: 38515000400
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
real 0m0.007s
user 0m0.000s
sys 0m0.004s
tculjaga@l01sipindir2:~$