How to configure a query timeout in Neo4j 3.0.1

后端 未结 2 1644
不思量自难忘°
不思量自难忘° 2021-01-21 03:53

I\'d like to set a query timeout in neo4j.conf for Neo4j 3.0.1. Any query taking longer than the timeout should get killed. I\'m primarily concerned with setting th

相关标签:
2条回答
  • 2021-01-21 04:15

    Thanks to @stdob for the comment explaining a solution.

    In Neo4j 3.0.1 Community, I verified that the following addition to neo4j.conf enabled a query timeout of 1 second for Browser queries:

    unsupported.dbms.executiontime_limit.enabled=true
    unsupported.dbms.executiontime_limit.time=1s
    

    I did not check whether the timeout applies to queries oustide of Neo4j Browser, but I assume so. I did find some documentation in the Neo4j codebase for unsupported.dbms.executiontime_limit.time:

    If execution time limiting is enabled in the database, this configures the maximum request execution time.

    0 讨论(0)
  • 2021-01-21 04:20

    I believe dbms.transaction.timeout is the current way of limiting execution time

    0 讨论(0)
提交回复
热议问题