A graph database stores the links between things as data, so following a chain of connections is a step each time and not a search. How it differs from tables, where it earns its place, from fraud rings to knowledge graphs, and the limit that keeps it beside the other kinds.
A graph database stores the links between things as data in their own right, so following a chain of connections is a step each time and not a search. When the question is who is connected to whom, this is the database built for it.
A bank opens an account for a new customer, and nothing on the form looks wrong. Then someone notices the phone number belongs to another account, and that account shares an address with one closed for fraud. The record was clean. The problem was in the links.
A relational database keeps links as keys, with one table pointing to another. To follow one link it joins two tables, and each join is another search across a table, so the longer the chain, the slower it gets.
The links are stored. Graph here doesn’t mean a chart with an axis. It means dots joined by lines. Every thing is a node, whether it’s a customer, a phone number or an address. Every link is a relationship, stored beside the two nodes it joins, with a name such as “uses” or “registered at”. From the new customer the database steps to the phone number, then to the other account, then to the address, then to the account that was closed. Each step costs the same however many customers the bank holds.
You ask by describing a shape. The bank wants to know whether this customer is linked to anyone closed for fraud, at any distance. With tables, nobody can say how many joins that takes, because the length of the chain is the answer you’re after. In a graph you describe the shape, one account sharing a phone or an address with another, and the database walks the links as far as they go.
A graph database earns its place wherever the links matter more than the records, such as fraud rings, supply chains, recommendations and access control. The same idea can hold facts about the world, each fact a link between two things, which is called a knowledge graph. Google built one in 2012. Some AI systems now keep one beside their documents, so they can follow connections as well as find similar text.
The limit is that a graph is hard to cut into pieces, because links cross every cut. It usually grows by copying the whole graph, not by spreading across thousands of machines. If your questions never follow a chain, a plain table is the simpler home.
Every claim was checked against Neo4j’s, Amazon Neptune’s and Azure Cosmos DB’s own documentation, the W3C’s RDF primer, Google’s 2012 Knowledge Graph announcement and Microsoft’s and Neo4j’s GraphRAG pages in September 2026. No product is recommended. This is an independent explainer, not affiliated with any vendor.
The line to keepFollowing a link is a step, not a search, however far the chain runs.
Transcript of the video
A bank opens an account for a new customer, and nothing on the form looks wrong. Then someone notices the phone number belongs to another account, and that account shares an address with one closed for fraud. The record was clean, and the problem was in the links.
A relational database keeps those links as keys, with one table pointing to another. To follow one link, the database joins two tables. Every extra step adds another join, and each join is another search across a table, so the longer the chain, the slower it gets.
A graph database keeps the links as data in their own right. Graph here doesn't mean a chart with an axis. It means a set of dots joined by lines, where the dots are the things and the lines are the links.
Every thing is a node, whether it's a customer, a phone number or an address. Every link is a relationship, stored beside the two nodes it joins, with a name such as uses or registered at. Each node keeps a direct path to its neighbours.
Following a link is a step, not a search. From the new customer, the database steps to the phone number, then to the other account, then to the address, and then to the account that was closed. Each step costs the same however many customers the bank holds, because the path is already stored.
What the bank really wants to know is whether this customer is linked to anyone closed for fraud, at any distance. With tables, how many joins would that take?
Nobody can say, because the length of the chain is the answer you're after, and a graph query never counts joins. You draw the shape you want, one account sharing a phone or an address with another, and the database walks the links as far as they go and hands back the chain.
A graph database earns its place wherever the links matter more than the records. Fraud rings show up as accounts that share details, and a supply chain links suppliers, shipments and routes. Recommendations come from what other people also bought, and access control asks who can reach which system.
The same idea can hold facts about the world. Paris is the capital of France, and France is in Europe, each fact a link between two things. That is called a knowledge graph. Google built one in twenty twelve so that its search could understand things, not just strings of letters.
Some AI systems now keep one beside their documents. Finding similar text tells the AI what something resembles, and following the links tells it how things are connected. With both, it can answer a question that runs through several things at once.
A graph is hard to cut into pieces, because links cross every cut. That is why a graph database usually grows by making copies of the whole graph, rather than spreading it across thousands of machines.
If your questions never follow a chain, a plain table is the simpler home. A graph database sits beside it, and takes the questions about connection.
A graph database stores the links as data, and each thing keeps a direct path to its neighbours. Following a link is a step, not a search, however far the chain runs. When the question is who is connected to whom, this is the database built for it.
Found this useful?
Subscribe for the next one, or tell me what you want explained. I take requests.