Why a hop is a pointer and a join is an index lookup
A native graph hop is one pointer dereference and a relational hop is an index lookup, so the gap grows with depth until supernodes force a scan.
A social graph looks like tables, so the naive schema stores edges in a table and joins on every hop. Each join costs an index lookup, and the cost grows with each step even as result sets shrink. A native graph store attaches each relationship to its node, so a hop follows a pointer and skips the global index. Traversal cost follows the access pattern, not the data volume. Each relationship in a native store is a record with three pointers: one to its source node, one to its target node, and one to the next relationship in the same adjacency list. Node records hold the address of their first relationship. Walking a node's neighbours means following that chain of addresses, and each step lands directly on the other node's record. No search runs during the traversal, which is why the design is called index-free adjacency. The index does not vanish, though. A walk still needs an entry point, either an id you already hold or a lookup that produces one, and each hop is still a random read from storage. Two hops from a node with a hundred neighbours, each with a hundred neighbours, touch ten thousand relationship records, and each touch is a pointer step rather than a search. The abstraction hides a cost that moves to writes and high-degree nodes. Storing relationships on nodes means every insert updates adjacency data on the nodes it touches, so the structure trades write amplification for read locality. Traversals stay cheap, but bulk updates do not. The sharpest failure is the supernode. Take an account with millions of followers and ask who its followers follow. Constant time per edge still means millions of records, each a random jump, so walking that adjacency list behaves like a scan. A relational engine that sweeps the edge table once with a hash join can finish sooner, because one sequential pass beats millions of seeks. Pointer layout is the worst layout for scans, so triangle counts and degree distributions belong elsewhere. Use a graph store when the query starts at a known node, walks a small number of hops, and the answer is the set of nodes reached. Stay relational when the query aggregates a whole table, when the join is a single selective hop, or when you cannot name a starting node. Then you pay for an entry-point lookup and gain nothing. Before choosing, count the degree of the nodes the walk will cross. If any of them holds millions of edges, bound the fan-out, filter early, or run that step as a scan. If the graph ingests in bulk, budget for the update cost that the layout creates. Do not load a graph into a graph database just to answer scan-shaped questions, since that is the shape the pointer layout serves worst.
- native hop cost
- one pointer dereference
- relational hop cost
- one index lookup per hop
- traversal at depth four
- milliseconds per hop
- supernode adjacency list
- millions of edges
Following a stored address from one node record to the next, with no index search. This is the unit cost of a traversal step.
Each join searches the edge index, so every added hop adds another lookup on top of the ones before it.
Per-hop latency at depth four stays in the millisecond range, and it accumulates across the walk.
One high-degree node can hold a list this long, and walking it is close to a full scan.