In Azure Cosmos DB, we can change the partition key later, once we decided at the beginning
I am new to Cosmos DB and I noticed that we can set the partition key based on the need for efficient scaling with the code:
DocumentCollection myCollection = new DocumentCollection();
myCollection.Id = "coll";
myCollection.PartitionKey.Paths.Add("/deviceId");
Question: can I change the section key later after creating the collection and specify the section key? As I can find out the partition key selection is not correct later.
+3
source to share
No one has answered this question yet
See similar questions:
or similar: