Query7: PartitionKey == "A" and (RowKey == "A" or RowKey == “F”)
This results in scanning the entire Partition "A".
当前版本的 Azure 仍然是这种情况吗?
当我的分区仅包含约 20 行时,我应该更喜欢两个并行查询还是上面的语法?
Query7: PartitionKey == "A" and (RowKey == "A" or RowKey == “F”)
This results in scanning the entire Partition "A".
当前版本的 Azure 仍然是这种情况吗?
当我的分区仅包含约 20 行时,我应该更喜欢两个并行查询还是上面的语法?
我从Microsoft 的 Joe Giardino那里找到了答案:
如果您想要几个不连续的行键,那么发出以下形式的单独但并行的单独查询将执行得更好。当您同时指定 PartitionKey 和 RowKey 时,查询被视为“PointQuery”,这是性能最高的选项。
a) PartitionKey == “MyPK” && RowKey == “FirstRK”
b) PartitionKey == “MyPK” && RowKey == “SecondRK"