Why Did One More Hop Make the Query So Expensive?

Read query plans, reason about candidate expansion and compare access paths without confusing a toy operation count with measured database performance.

13 sections · 4 questions · 1 coding challenge

1 / 13

Declarative Graph Queries Needed Physical Execution Plans

BOTIE

A declarative pattern describes the answer, leaving the database to choose how to find it. The Cypher authors describe Neo4j’s cost-based planning and physical execution operators. This separation lets equivalent logical queries use different access paths.

For our maintenance graph, locating one asset before expanding relationships can avoid unrelated work. The improvement is a claim to verify in a real plan, because cardinality estimates, indexes and graph degree all affect execution.

Sources for this history