我对 Azure 中的点查询有疑问。如果我有大量的分区键/行键对,是否有一种智能方法可以进行大量的点查询来获取实体?
我当然可以迭代n对并进行n查询,但我觉得有一种更聪明的方法。
谢谢
最佳答案
我从 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存储服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14898082/