How do I perform
MATCH (p:Person:Actor)-[r:ACTED_IN]->(m:Movies{name:"ABC"}) RETURN p.name;
In neo4j embedded Java . detailed explanation of the code would be of great help. note: I want to do this in native Java api not in cypher. It is supposed to have around 100000 nodes
You can execute Cypher queries with:
If you're using Neo4j before v2.2, please note that
ExecutionEngine
is meant to be instantiated as a singleton, so that execution plans will be properly cached.If you have got strong performance constraints, might want to play with
TraversalDescription
and customize the many available parameters and define a traversal callback if needed. The key is to ensure you traverse as little node as required.You should know though that Cypher execution is being more and more performant, last version (2.2) brings lots of improvements.