我想在行中存儲一個值: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是您的正確選擇。 –