我想在行中存储一个值:guid。但我必须设置Pair:PartitionKey和RowKey,所以我的配对是: “guidValue”,some_guid 什么应该是PartitionKey:guid或const字符串?Azure Table:在Azure表中存储guid的最佳性能是什么?
所以结构应该看起来像这样:
PartitionKey: "guidValue"
RowKey: 951FE9AE-50FA-48F6-96C8-81D10271E36D
PartitionKey: "guidValue"
RowKey: 951FE9AE-50FA-48F6-96C8-81D10271E37D
PartitionKey: "guidValue"
RowKey: 951FE9AE-50FA-48F6-96C8-81D10271E38D
...
或类似的:
PartitionKey: 951FE9AE-50FA-48F6-96C8-81D10271E36D
RowKey: "guidValue"
PartitionKey: 951FE9AE-50FA-48F6-96C8-81D10271E37D
RowKey: "guidValue"
PartitionKey: 951FE9AE-50FA-48F6-96C8-81D10271E38D
RowKey: "guidValue"
?
我的方案是:我保存一次GUID并多次阅读。
我的方案是:检测duplicate.guid。 一个服务将一个一个地保存到表中。其他服务将检查表中是否存在该GUID –
如果是,则由于您不需要批处理操作,所以选项2是您的正确选择。 –