简体   繁体   English

如何在 portal.azure.com 上使用 SQL 获取 100 多个查询结果 Cosmos DB 数据资源管理器

[英]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属性。

There's a setting blade in the upper right corner of the Data Explorer : Data Explorer右上角有一个设置刀片:

在此处输入图像描述

There you can specify the Page Options : Query results per page在那里您可以指定页面选项每页查询结果

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用查询从 azure cosmos db 使用 cosmos batch 存储超过 100 条记录 - How to store more than 100 records using cosmos batch from azure cosmos db using query 如何使用查询从azure cosmos db中获取超过100条记录 - How to fetch more than 100 records from azure cosmos db using query 如何在 portal.azure.com 中按类型默认概览仪表板 - How to default overview dashboard as group by type in portal.azure.com 从 portal.azure.com 阻止用户 - Block user from portal.azure.com 如何使用 $v 和 $t 在 Azure 门户上查询 Cosmos DB - How to query Cosmos DB on Azure Portal with $v and $t 如何使用Azure DocumentDB REST API获得超过100个查询结果 - How to get more than 100 query results with Azure DocumentDB REST API 通过 https://portal.azure.com 导出 Azure SQL 永远不会完成 - Azure SQL Export via https://portal.azure.com Never Completes 如何在 Azure Application Insights 中使用 BeginScope(在 https://portal.azure.com 中)? - How to use BeginScope in Azure Application Insights (in https://portal.azure.com)? portal.azure.com 中的 Azure 应用服务运行时堆栈可用性 - Azure App Service Runtime Stack Availability in portal.azure.com manage.windowsazure.com与portal.azure.com - manage.windowsazure.com vs. portal.azure.com
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM