无法从 Azure 存储中获取所有项目 Table

Cant get all items from Azure Storage Table

我无法从 Azure 存储中获取超过 1000 个项目 Table。我尝试按照 link:

添加这些 headers
OData-MaxVersion: 4.0  
OData-Version: 4.0  
Prefer: odata.maxpagesize=3 

我还寻找返回的@odata.nextLink 属性 来获取下一页的项目,但返回了 none。 table 有大约 2050 个项目。

这是默认设置,已添加用于性能优化。

A query against the Table service may return a maximum of 1,000 items at one time and may execute for a maximum of five seconds. If the result set contains more than 1,000 items, if the query did not complete within five seconds, or if the query crosses the partition boundary, the response includes headers which provide the developer with continuation tokens to use in order to resume the query at the next item in the result set. Continuation token headers may be returned for a Query Tables operation or a Query Entities operation.

请参阅 Query timeout and pagination 了解如何使用延续令牌 headers 获取下一组结果。

一条重要的额外信息:

A request that returns more than the default maximum or specified maximum number of results returns a continuation token for performing pagination. When making subsequent requests that include continuation tokens, be sure to pass the original URI on the request. For example, if you have specified a $filter, $select, or $top query option as part of the original request, you will want to include that option on subsequent requests. Otherwise your subsequent requests may return unexpected results.