简体   繁体   中英

azure cosmos maximum value of partitions key

I have a app that save a lot of data, and I need to desing de collections a partitions keys. I need to known, Which is the maximum partition key into a collection? and What is the maximum number of documents into the partition key that I´d save?## Heading ##

Which is the maximum partition key into a collection?

AFAIK, there's no limit on number of partitions you can have in a collection. It would depend on the size of the collection but you can always raise a support request and get the size of collection increased.

What is the maximum number of documents into the partition key that I´d save?

Currently the maximum size of a partition is 10GB. Thus the number of documents you can put in a collection would depend on the size of the documents you store. Since the maximum size of a document can be 2MB (Ref: https://docs.microsoft.com/en-us/azure/cosmos-db/sql-api-resources#documents ), you can have a minimum of 5120 documents assuming all of your documents are 2MB in size.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM