Why we built cortex as a graph, not a warehouse
Jan 14
Engineering
Why we built cortex as a graph, not a warehouse
Daniel Reyes
Relational storage answers the questions you already know how to ask. That is a fair trade when the questions hold still, and a poor one when they do not. Every interesting question we heard from early users crossed four or five systems and leaned on relationships nobody had modelled in advance: the account that opened a ticket, the feature it named, the release that changed it, the invoice it eventually moved, and the renewal that quietly depended on all four.
Why we chose a graph
So Cortex keeps relationships as first-class objects rather than as joins waiting to be written. Every record that arrives is resolved against the entities we already know, and the edges between them carry their own history. Adding a source means describing how its identifiers map onto existing entities; it does not mean redesigning a schema, and it certainly does not mean rebuilding a warehouse over a long weekend.
What it unlocks
The payoff turns up in the questions that used to cost a week of analyst time. Traversals that once ran six joins deep are a single hop, a new source becomes useful the hour it connects, and the same graph answers questions we never anticipated when we designed it. We gave up raw scan speed on wide aggregates, and in two years of production use nobody on the team has once asked for it back. The shape of the store now matches the shape of the questions.