azure - 如何在 Azure Cosmos DB 数据迁移工具中将数据从 SQL 迁移到 Cosmos Db 时分配分区键

标签 azure azure-cosmosdb

我已经下载了 Azure Cosmos DB Data Migration Tool从这里。 我正在将 Sql 数据迁移到 Cosmos DB。使用迁移工具时。 Source Information Target Information

我应该在分区键字段中提供什么?

最佳答案

cosmosdb中,PartitionKey是一个存在于每个单个对象上的属性,最适合用于将相似的对象分组在一起。

根据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).

超过 10GB 的集合,需要分区键。

要了解有关 PartionKey 的更多信息,请阅读 here

关于azure - 如何在 Azure Cosmos DB 数据迁移工具中将数据从 SQL 迁移到 Cosmos Db 时分配分区键,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49462450/

相关文章:

sql-server - 在 Azure SQL Server (V12) 上启用审核会中断 ADO.NET 连接

azure - AKS 负载均衡器静态 IP 分配不起作用(保持待定状态)

azure - ETL 文件合并失败 (0x80070006)

.net - 在 .Net Core 3.1 中使用 MongoDB API 出现 Azure Cosmos DB 中的重复 key 问题

azure - 如何使用 PowerShell 脚本将数据从外部文件插入 Azure Cosmos DB?

c# - Microsoft.Graph.Models.ODataErrors.ODataError 与 .PatchAsync(用户)上的 Graph API

azure - 是否可以在运行时从数据工厂中的 Azure 函数链接服务内部读取参数?

mongodb - Azure CosmosDB : enable dot notation for MongoDB API

python - 尝试使用 python 连接到 azure cosmos 客户端,出现 104 连接中止错误

node.js - Cosmos DB 连接超时