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
database-partitioning


source to share


No one has answered this question yet

See similar questions:

0
Does Cosmos DB support multipartition transactions?

or similar:

4
Azure Cosmos DB key section - is primary key acceptable?
3
Cosmos DB database with multiple partition keys
2
MongoDB is hosted on Azure Cosmos DB: Sharding vs partitioning
1
Cosmos DB error code 400 when creating a new document
0
Partition key for Cosmos DB database
0
Configuring TTL on Azure Cosmos MongoDB
0
Encode PartitionKey to Document Id?
0
Azure Cosmos DB reads changes from date range
0
cosmos db, generate client authentication key for Azure Table endpoint
0
Can we query the Azure Cosmos DB database reference just like the Cosmos DB gallery?



All Articles
Loading...
X
Show
Funny
Dev
Pics