Query7: PartitionKey == "A" and (RowKey == "A" or RowKey == “F”)
This results in scanning the entire Partition "A".
当前版本的 Azure 仍然是这种情况吗?
当我的分区仅包含约 20 行时,我应该选择两个并行查询还是上面的语法?
最佳答案
我从 Joe Giardino, Microsoft 找到了答案:
If you want several non contiguous row keys, then issuing separate but parallel individual queries of below form will perform better. When you specify both PartitionKey and RowKey the query is considered a "PointQuery" which is the most performant option.
a) PartitionKey == “MyPK” && RowKey == “FirstRK”
b) PartitionKey == “MyPK” && RowKey == “SecondRK"
关于azure - 在Azure中查询多个RowKey,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17407680/