question

kiruva-4567 avatar image
0 Votes"
kiruva-4567 asked azure-cxp-api edited

How to force CosmosDB physical partitioning?

Is there a way to force physical partitioning or replicate what happens when passing 50GB?

We need to replicate this behavior in an azure hosted dev environment.
The dev environment has a 5GB collection, while the production has passed 50GB.

This results in queries not behaving the same as the physical partitioning has a paging behavior.

We have been able to replicate in the CosmosDB Emulator by setting the throughput to a very high value.
This isn't very desirable for something hosted in Azure.

So, is there a way to replicate this paging behavior in a smaller azure hosted environment?

azure-cosmos-db
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MarkBrownMSFT avatar image
1 Vote"
MarkBrownMSFT answered

There is no way to simulate this. You will need to increase RU/s or back fill your data into your dev environment. If you only need this for a short period of time for testing I suggest configuring the container for TTL and then, TTL the data off when you are done testing.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.