Hi folks,
I'm performing a Global Catalog bind set up to query roughly 10k
users. When I simply bind to the root of the GC ("GC:"), the entire
query and enumeration runs a few seconds.
However, when I bind to -- "GC://OU=Engineers,DC=domain,DC=com" -- the
query and enumeration take significantly longer to run (6x), despite
having 15% fewer users.
In iterating over my users (after ExecuteSearch), I've noticed (doing
timing tests) that these two function calls take more time to return
in 'scoped' search as opposed to searching at the root:
(1) pGCSearch->GetColumn(hSearch, pszAttribute[dwAttrLoop], &col);
(2) pGCSearch->GetNextRow(hSearch)
Interestingly, when I use "LDAP://rootDSE" and "LDAP://
OU=Engineers,DC=domain,DC=com", I get the same query results, except
that 'scoped' LDAP returns (as expected) more quickly than does the
root bind.
This machine is a standalone Win2k3 server in its own isolated test
area.
Any ideas why querying for a smaller result set would take longer
under global catalog binds?
Thanks,
Arnon


|