Graph name, Query
Returns: String representation of a query execution plan
Frequently Asked Questions
Does GRAPH.EXPLAIN actually execute the query?
Does GRAPH.EXPLAIN actually execute the query?
No.
GRAPH.EXPLAIN only constructs the execution plan without running the query. No data is read or modified. Use GRAPH.PROFILE if you want to execute the query and see runtime metrics.What can I learn from the execution plan?
What can I learn from the execution plan?
The execution plan shows the sequence of operations (scans, filters, traversals, projections) the engine will perform. This helps you understand whether indexes are being used and identify potential performance bottlenecks.
How do I know if my query is using an index?
How do I know if my query is using an index?
In the execution plan output, look for operations like
Index Scan instead of Node By Label Scan. An index scan indicates the query is leveraging an index for faster lookups.Can I use GRAPH.EXPLAIN with parameterized queries?
Can I use GRAPH.EXPLAIN with parameterized queries?
Yes. You can pass parameterized queries to
GRAPH.EXPLAIN using the same CYPHER param=val syntax as GRAPH.QUERY.