【发布时间】:2019-09-27 12:18:58
【问题描述】:
似乎在 Cosmos DB Gremlin API 中,查询超时设置为 30 秒。有没有已知的方法来增加它?
- 在
gremlin-driver3.4.3中忽略超时 - 与 Gremlin 控制台
3.4.3中的:remote config timeout的行为相同 - 提高吞吐量也无济于事
// graph has >200000 vertices
String superSlowQuery = "g.V().repeat(identity()).times(32)";
time(() -> client.submit(superSlowQuery).all().get());
// OperationCanceledException after 31560ms
time(() -> client.submit(superSlowQuery).all().get());
// OperationCanceledException after 35081ms
RequestOptions requestOptions = RequestOptions.build().timeout(120 * 1000).create();
time(() -> client.submit(superSlowQuery, requestOptions).all().get());
// OperationCanceledException after 31656ms
【问题讨论】:
-
你找到这个答案了吗,在 3.4.3 中看不到它声明这个被忽略,因为它也在寻找这个答案
标签: azure-cosmosdb gremlin azure-cosmosdb-gremlinapi