EXPLAIN and PROFILE
EXPLAIN / PROFILE
Create the relevant index first. A parameter used by the query still needs a value from your driver or embedding API.
Prefix any query with EXPLAIN to see the chosen plan without executing it.
The plan lists operators and, for each MATCH anchor, the scan strategy the
planner picked (index seek / label scan / all-nodes scan). The anchor may be
either end of the pattern — the operator line shows the scan of the end the
planner chose.
EXPLAIN MATCH (p:Person {email: $e}) RETURN p;
// Match: NodeIndexSeek(:Person .email)
// ProduceResults
PROFILE <query> currently runs the query normally (detailed per-operator
profiling metadata is future work — see Compatibility and limitations).
Related articles
Indexes and constraints · Procedure directory · Transactions and concurrency