gremlin - gremlin 如何设置 scriptevaluationtimeout 0
问题描述
我想将 scriptevaluationtimeout 设置为 0。
我正在使用 apache-tinkerpop-gremlin-console-3.4.9。
我想使用 gremlin-python。
解决方案
正如上面提到的问题,不清楚您是指 Gremlin Console 还是 gremlin-python,所以我将两种方式都回答。对于 Gremlin 控制台,远程连接的首选方法是发出以下命令:
gremlin> :remote connect tinkerpop.server conf/remote.yaml
==>Configured localhost/127.0.0.1:8182
gremlin> :remote config timeout none
以上内容在参考文档的本节中有详细说明。对于 gremlin-python,您可以配置每个请求超时,如此处所述的脚本:
result_set = client.submit('g.V().repeat(both()).times(100)', result_options={'evaluationTimeout': 0})
或这里的字节码:
vertices = g.with_('evaluationTimeout', 0).V().out('knows').toList()
推荐阅读
- python - 将python2的版本更改为python3时出现问题
- json - SWIFT 5 中的嵌套 JSON
- docker - 如何将多阶段 docker 映射到多个 Jenkins 阶段
- c# - 如何让 RestSharp 不将 oauth_callback 参数添加到 Authentication 标头
- c# - 异步 Active Directory 查询
- spring - 将@Service/@Component 与@Bean 放在一起是不是很糟糕?
- android - Android从第二个微调器中的第一个微调器获取所选项目,反之亦然
- javascript - 如何在 React 中显示保存为 blob 的图像
- c# - 为了读取数据库而不是 SqlDataReader,我在 LINQ 中使用什么?
- sql - 重复行并包含一个具有交替值的新列