We have some 20 million documents which needs to be inserted into our Cosmos DB. Our partition ID for these documents is based on Group_ID. There can be max 300 unique Person_ID under this Group_ID.
This translates to something like below.
20 million individuals. Each one has a unique PERSON_ID
Partitioned by GROUP_ID -- Ranges from 50 to 300
If I consider 300, then roughly we get 66K partitions.
- Search by
GROUP_IDwill be our most used ID.
Question : Is it ok to have 66k partitions ? Will there be a performance impact ? Also, size of our Cosmos DB will grow from 20 million to 100 million in 3 years (which is 3.3 million partitions)