Right. Best to avoid large filters. Also best to avoid too many
transactions.
You may want to consider a tree structure that makes this easier by grouping
birds of a feather ... together.
-----Original Message-----
From: Nigel de Costa
To: [EMAIL PROTECTED]
Sent: 9/1/01 11:58 AM
Subject: LDAP search strategy to retrieve a large number of entries
I have a large number of entries (500) that I would like to read from an
iPlanet Directory Server. I know the DNs for the entries and I am using
the
Netscape LDAP SDK for Java.
Is it quicker to query by:
a) creating a large search filter with 500 equality expressions
OR
b) use the LDAPConnection.read() method to read each entry using the DN
(repeated 500 times).
(Empirically I have found that the SDK or the Dir Server does not like
large
search filters and so it is better to break the filter into smaller
batches).
Any ideas welcome.
Regards
Nigel de Costa