Avoid cycles in Cypher queries

Hi all,

I have published a new blogpost. When writing Cypher queries, be sure that it don't match any cycles, or you can experience unpleasant surprises.

I'd be happy for your review.


Fantastic - thanks so much for writing this Jan and for sharing on the community!

I think the suggestion about searching for explicit directions (and bounded nodes/relationships) is extremely important to avoid this condition. Perhaps in the future we can provide feedback to people when they execute a query which traverses a lot between the same two nodes.


1 Like

Thanks for submitting!

I've added a tag that allows your blog to be displayed on the community home page!

Hi @ryan.boyd, thanks for the appreciation! I'm wondering how could Neo4j provide such feedback? It could be useful prior starting the query, in case the query would run for very long time or even never finish.

1 Like