我试图使用query_entities响应中的continuation令牌来检索接下来的1000个值,但是我得到了相同的1000个值。在
我的代码
rows = table_service.query_entities(
'tableName', "PartitionKey eq '6'", top=1000)
nextRowKey = rows.x_ms_continuation['NextRowKey']
rows = table_service.query_entities(
'tableName', "PartitionKey eq '6'",
next_row_key=nextRowKey, top=1000)
我做错什么了吗?从github中的解释来看,它似乎应该起作用。在
如果您使用}甚至不再可用。在
azure-storage-table
(隐藏在azure-cosmosdb-table
pip包中)的最新版本,您可以免费获得超过1000个长块的迭代。top
的参数{此片段适用于
azure-cosmosdb-table==1.0.5
:当表服务返回一个continuation令牌时,您将得到两个结果-}。要获取下一组实体,您需要同时使用这两个实体。请执行以下操作:
NextPartitionKey
和{下面是一个适合我的模式(使用0.33.0的azure存储),我唯一想看到的改进是如何更好地组合结果集。在
相关问题 更多 >
编程相关推荐