Reputation: 6021
I had a lot of data in cosmos but the costs were spiralling (up to 19 partitions). I've added a TTL of 3 months and the data is now far more reasonable (and should fit in 6 partitions) but it hasn't scaled the partitions back. Is there any way to do this?
Upvotes: 1
Views: 207
Reputation: 21147
Microsoft has not yet provided any way to control or optimize the number of physical partitions in CosmosDB. It can definitely be an issue if your Collection has grown significantly in the number of physical partitions especially if you are no longer utilizing all of that storage. You might consider transitioning over to a new Collection through using the Cosmos change feed or Data Factory. This would reset the number of physical partitions you are assigned and improve your throughput per partition for your new trimmed down dataset.
Upvotes: 1