cypher - Make neo4j query last long for testing purposes? -
we want create slow query test in our application. there way make neo4j query last specific amount of seconds?
i believe can use apoc procedure apoc.util.sleep.
according docs:
apoc.util.sleep({duration})
: sleeps millis, transaction termination honored
for example:
call apoc.util.sleep(1000) // wait 1 second match (node) // match 'node'... return node // ... return 'node'
please remember install apoc procedures according version of neo4j using. take in version compatibility matrix.
Comments
Post a Comment