Manage Learn to apply best practices and optimize your operations.

"Add Search" limited to 5000 documents

This tip describes how to limit "Add Search" to 5000 documents.

I've never seen this documented, but I've been bitten by it more than once. If you use the "Add Search" in an agent to limit the documents the agent should act on, the search will always stop after the first 5000 documents that match the search criteria. For large databases you'll need to make the selection inside your code, using a, view.getalldocumentsbykey, or similar method.

The limitation applies whether the agent is run by a user or by the server.

Dig Deeper on Domino Resources - Part 2

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...