directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject Simple code example of paged result?
Date Thu, 02 May 2013 15:15:18 GMT

For migration purposes, we sometimes need to loop through all entries in the directory.
For example if we create a search cursor with ( uid=* ) this often leads to a timeout because
the result is tens of thousands.

10:39:24,614 ERROR root:279 - Cursor error TimeOut occurred

Aside from setting the timeout to 2 mins, I'd like to use a paged result.

Does anyone have a simple working example of a paged search result?  In the PagedSearchIT
there's a JNDI example.
Was looking for something the in the Apache API if possible. Many thanks!

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message