Azure Cosmos DB get all Items of a parition

Raman Sharma 21 Reputation points Microsoft Employee


For a use case I need to fetch all items of the partition. one way I was able to find to use query.
I looked at some documentation and was not able to find any such API.

Is there any API that can get all items of the partition and if anyone can share its documentation.

Raman Sharma

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,528 questions
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,604 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce ( 60,871 Reputation points

    You can not access cosmos db by physical or logical partition. This is internal to the database and not exposed. Internally partitions are split and merged behind the scenes based on data size and throughput settings. The column value used as a partition key is mapped to the logical partition.

    0 comments No comments