Azure Cosmos DB get all Items of a parition

Raman Sharma 21 Reputation points Microsoft Employee
2022-11-21T12:26:51.723+00:00

Hi,

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.

Regards,
Raman Sharma

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,528 questions
C#
C#
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 (SqlWork.com) 60,871 Reputation points
    2022-11-22T16:20:15.893+00:00

    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