2

我想将 scriptevaluationtimeout 设置为 0。
我正在使用 apache-tinkerpop-gremlin-console-3.4.9。
我想使用 gremlin-python。

4

1 回答 1

1

正如上面提到的问题,不清楚您是指 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()
于 2020-12-15T09:13:05.460 回答