Quoting Jon Roberts <[EMAIL PROTECTED]>:

Jimi wrote:
We use Open Ldap with bdb, and after a import of about 15000 test users,
searching  for users doesn't seem possible anymore. About 2 hours ago I
started a simple search for uid=a* (as a filter) that still hasn't
finished.

I didn't see this mentioned in any responses. From man slap.conf:

index_substr_if_minlen <integer>
Specify the minimum length for subinitial and subfinal indices. An attribute value must have at least this many characters in order to be processed by the indexing functions. The default is 2.

As I understand, if your indices are not configure to use a granularity that would find something like "(uid=a*)" when they are created, the search falls back to a brute force algorithm which results in a *long* search and tons of logging.

Ok, thanks for that tip. Will look into it.

However, as I wrote before, the problem in our case was not the actual search,
but the things the CMS did with the result (fetching user data from database,
one select statement per user etc). But definitely worth looking into.

Regards
/Jimi

---
You are currently subscribed to [EMAIL PROTECTED] as: [EMAIL PROTECTED]
To unsubscribe send email to [EMAIL PROTECTED] with the word UNSUBSCRIBE as the 
SUBJECT of the message.

Reply via email to