[英]How to get more than 100 query results with SQL on portal.azure.com Cosmos DB Data Explorer
On https://portal.azure.com/ - Cosmos DB Data Explorer, I can execute SQL queries.在https://portal.azure.com/ - Cosmos DB 数据资源管理器上,我可以执行 SQL 查询。 The result output is 100:结果输出为 100:
SELECT c.email FROM Clients c
To reduce the number of network round trips required to retrieve all applicable results, you can increase the page size using x-ms-max-item-count
request header to up to 1000: https://docs.microsoft.com/en-us/azure/cosmos-db/performance-tips要减少检索所有适用结果所需的网络往返次数,您可以使用x-ms-max-item-count
请求标头将页面大小增加到最多 1000: https ://docs.microsoft.com/en- 我们/azure/cosmos-db/performance-tips
Is it possible to use x-ms-max-item-count
on that SQL query?是否可以在该 SQL 查询上使用x-ms-max-item-count
? Any other way to increase the limit of output results to it maximum?还有其他方法可以将输出结果的限制增加到最大吗?
Related question: How to get more than 100 query results with Azure DocumentDB REST API相关问题: 如何使用 Azure DocumentDB REST API 获得 100 多个查询结果
In fact, there is a Query Explorer
in azure cosmos db portal which is similar to Data Explorer
mentioned in your question.事实上,azure cosmos db 门户中有一个Query Explorer
,类似于您问题中提到的Data Explorer
。
As you see,you could set items per page as custom number or unlimited.如您所见,您可以将每页的项目设置为自定义数量或无限制。 If it is in REST API, you could follow the case to configure the x-ms-max-item-count
header.如果它在 REST API 中,您可以按照案例配置x-ms-max-item-count
标头。 It it is in SDK,you could set the MaxItemCount property in FeedOptions.它在 SDK 中,您可以在 FeedOptions 中设置MaxItemCount属性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.