Overview of Pagination
Learn how pagination works in Cosmos DB and how to decide between automatic and manual mode.
We'll cover the following...
Introduction
Pagination divides a set of results into pages returned separately. In most cases, Cosmos DB determines when to paginate the results. Let’s start with the only way we can control it. When we query the database, we can use the MaxItemCount
option to limit the number of items returned. For example, if the query response contains 100 items, and we set the limit to 20, there will be five pages.
The other causes of pagination are the following: