Do you know how many entries are in the result set? Is this an indexed search? If you do a really large unindexed search, it may take the database a very long time to respond, or it may return an error if resource limits are exceeded.

I would suggest using only indexed searches and adding more search criteria to reduce the result set size.

Julia wrote:
I'm using Netscape LDAP SDK to do some searches. I tested the code on a small dataset, and it works fine. When I run it
on a bigger dataset, the search hangs, without throwing any
exceptions.
I've let it run for hours and it still does not stop.


The program does work when I set the number of MaxResults in search
constraint to 100 or less, or if I make the search more restrictive. However, I need to fetch all of the results.


I've also tried setBatchSize(100) in the search constraint (without
setting MaxResults), but the search still fails.

Any suggestions?

Thanks,
Julia

_______________________________________________ mozilla-directory mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-directory

Reply via email to