【发布时间】:2014-01-28 01:05:04
【问题描述】:
我尝试使用 CloudTable::ExecuteBatch(new TableBatchOperation{operation1, operation2}); 每个操作都是一个检索操作。有问题的 sn-p 如下所示:
var partitionKey = "1";
var operation1 = TableOperation.Retrieve(partitionKey, "1");
var operation2 = TableOperation.Retrieve(partitionKey, "2");
var executedResult = ExecuteBatch(new TableBatchOperation{operation1, operation2});
我收到一个异常,说在批处理执行中不能有任何检索操作。有没有办法解决这个问题,或者异步执行是处理多个分区键、行键查找的最佳方法?对于我的用例,我必须同时按分区键和行键查找最多 3 个不同的行。
【问题讨论】: