What is the default value for Cosmos DB paging size?

test29998411 281 Reputation points
2020-11-06T01:04:49.547+00:00

I know we can set the page size in MaxItemCount, but
I don't know the default value for Cosmos DB paging size.
What is the default value for Cosmos DB paging size?

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,608 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anurag Sharma 17,606 Reputation points
    2020-11-06T06:27:07.907+00:00

    Hi @test29998411 , welcome to Microsoft Q&A forum.

    As per the article, "By default, results are returned in chunks of 100 items or 1 MB, whichever limit is hit first."

    37870-image.png

    However as you rightly mentioned we can change this value based on our requirement by ingesting into 'MaxItemCount' property.
    "You can specify the maximum number of items returned by a query by setting the MaxItemCount. The MaxItemCount is specified per request and tells the query engine will to return that number of items or fewer. You can set MaxItemCount to -1 if you don't want to place a limit on the number of results per query execution."

    Please let me know if this helps or else we can discuss further.

    ----------

    If answer helps, please select 'Accept Answer' as this could help other community members having similar issues.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.