Retrieving many rows using a TableBatchOperation is not supported?

前端 未结 7 700
被撕碎了的回忆
被撕碎了的回忆 2021-01-11 11:55

Here is a piece of code that initialize a TableBatchOperation designed to retrieve two rows in a single batch:

 TableBatchOperation batch = new TableBatchOpe         


        
7条回答
  •  孤城傲影
    2021-01-11 12:19

    How many entities do you have per partition? With one retrieve operation you can pull back up to 1000 records per query. Then you could do your Row Key filtering on the in memory set and only pay for 1 operation.

    Another option is to do a Row Key range query to retrieve part of a partition in one operation. Essentially you specify an upper and lower bound for the row keys to return, rather than an entire partition.

提交回复
热议问题