AzureCosmosDB / data-migration-desktop-tool

MIT License
122 stars 46 forks source link

Update CosmosDataSinkExtension.cs to enable support for shared throughput in Cosmos containers #108

Closed Jonathan-Walsh-Amey closed 7 months ago

Jonathan-Walsh-Amey commented 7 months ago

The problem currently in the data migration tool is that if you don't specify a throughput, it sets one anyway (defaulting to 400). So effectively, using the data migration tool, you apparently can't get it to create containers that use shared throughput.

This changes makes it so that if CreatedContainerMaxThroughput is set to 0, it doesn't set a value for CreateManualThroughput, which means that the container will use shared throughput if the database is set up with that.

Fixes #105