草庐IT

documentCollection

全部标签

CosmoSDB documentCollection可以在创建后更改其分区**吗?

您可以在创建`documentCollection时设置分区密钥:vardocumentCollection=newDocumentCollection();documentCollection.PartitionKey.Paths.Add("/partitionKey");可以在以后的时刻更改,并导致CosmosDB重新分配现有文档吗?看答案我尝试使用ReplaceDocumentCollectionAsync就像你那样更改索引政策.varcollection=readResponse.Resource;collection.PartitionKey.Paths.Clear();collec