简体   繁体   中英

How to Assign partition key while Migrating Data from SQL to Cosmos Db in Azure Cosmos DB Data Migration Tool

I have Downloaded the Azure Cosmos DB Data Migration Tool from here. i'm Migrating the Sql Data to Cosmos DB. while Using the Migration Tool. Source Information 目标信息

What Should i provide in the partition Key Field ?

In cosmosdb , The PartitionKey is a property that will exist on every single object that is best used to group similar objects together.

According to docs ,

Specify the document property you wish to use as the Partition Key (if Partition Key is left blank, documents are sharded randomly across the target collections).

Collections over 10GB, partition key is required.

In order to understand more on PartionKey read here .

It depends if you migrating one table or multiple tables into a single collection?

I recommend using an Unique index that is exists in all the tables.

Alternately you can create a new partition key

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM