我试着使用像g.with_('evaluationTimeout', 1)这样的东西,但似乎不起作用
发布于 2021-08-12 13:33:22
假设您使用的是Gremlin GLV客户机之一,那么像这样的查询(在本例中是Python)将应用每个查询的超时。请注意,较长形式的scriptEvaluationTimeout已弃用,取而代之的是较短形式的evaluationTimeout
g.with_('scriptEvaluationTimeout',5).V().count().next()或
g.with_('evaluationTimeout',5).V().count().next()如果查询超时,您将得到一个异常,其中包含如下消息:
gremlin_python.driver.protocol.GremlinServerError: 500:
{"detailedMessage":"A timeout occurred within the script during evaluation.","code":"TimeLimitExceededException","requestId":"9ec1e462-f47f-4876-8157-c0bf3c06ec6b"}https://stackoverflow.com/questions/68754717
复制相似问题