How Paxos Pagination Works
- List endpoints return a page of results plus a
next_page_cursor - Pass the cursor to the next request to fetch the following page
- When
next_page_cursoris absent, you’ve reached the last page - The
limitparameter controls the number of items per page
Auto-Pagination (Recommended)
The SDK’s iterators fetch pages transparently. Iterate through results as if they were a single collection:Manual Pagination
If you need direct control over page cursors (for example, to store a cursor and resume later), use the page-level methods:Performance Tips
- Set an appropriate page size — Larger pages mean fewer network round-trips but more memory per page. Start with 50–100.
- Break early — If you’re searching for a specific item, stop iterating once you find it.
- Process pages in parallel — If ordering doesn’t matter, fetch the next page while processing the current one.