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

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -