c# - Azure 搜索服务顶部值超过 1000

标签 c# azure azure-sql-database azure-cognitive-search

我通过搜索文档(Azure 搜索服务 REST API)获取文档。 问题是显示的 top 的最大值为 1000 here .

现在我正在测试获取 70000 文档的性能,这意味着我必须发送请求 70 次。

由于继续 token ,我确实获得了70000文档,没有任何问题。但遗憾的是它非常慢..

这里有一些例子:

Number of documents: 70000
Documents per request: 1000 
One Searchservice-Request with 1000 requests takes on average: 343,986301369863ms (0,343986301369863 seconds)
number of requests in total: 70
The whole requests took: 25168ms (25 seconds)

Number of documents: 70000
Documents per request: 500
One Searchservice-Request with 500 requests takes on average: 242,472602739726ms (0,242472602739726 seconds)
number of requests in total: 140
The whole requests took: 35499ms (35 seconds)

Number of documents: 70000
Documents per request: 250
One Searchservice-Request with 250 requests takes on average: 189,465753424658ms (0,189465753424658 seconds)
number of requests in total: 280
The whole requests took: 55495ms (55 seconds)

Number of documents: 70000
Documents per request: 50
One Searchservice-Request with 50 requests takes on average: 151,955357142857ms (0,151955357142857 seconds)
number of requests in total: 1400
The whole requests took: 222033ms (222 seconds)

您可以清楚地看到,每个请求获得的文档越多,整个请求完成的速度就越快。

我的问题是:每个请求是否可以获取超过 1000 个文档/将 top 值设置为高于 1000 来调整性能?

Azure 团队可以为我解锁类似的东西吗? 或者我只能忍受时间的流逝?

非常感谢。

最佳答案

My question is: Is it possible to get more then 1000 documents per request / set the top value higher than 1000 to tune the performance?

不可以,每个请求获取的文档数量不可能超过 1000 个。此限制是全局级别的,无法在服务级别进行自定义。

关于c# - Azure 搜索服务顶部值超过 1000,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43317200/

相关文章:

C# 视频流

c# - 运算符重载

c# - 使用 Swagger-API 生成的 api 客户端中未创建的对象

c# - VB.NET 代码片段是否可用于 C#?

azure - Visual Studio 2017 发布到 Azure 失败,引用为空 ("object reference not set to an instance of an object")

t-sql - Azure SQL Server 中的模糊搜索

c# - Azure Functions 需要很长时间才能横向扩展

azure - 在ARM模板中获取Azure存储dacpac文件

sql-server - 将 SQL Server 2008 游标变量转换为 SQL Azure

c# - 由于缺少 SSL 加密,连接到 SQL Azure 数据库失败