Skip to content
BENIBIX Learn

Graph Database

Development🗃️ DatabasesNoSQL Databases

Also known as Graph DB, Graph Store

A database that stores things as points and the links between them.

Think of it like

Think of it like a map of friends with lines between them. You follow the lines to see who knows who.

Example

Lucy's job site suggests people you may know. A graph database finds friends of friends in a few milliseconds.

Why it matters

Some questions are all about links. A graph database answers them where tables would struggle.

Definition

A graph database stores things as points and the links between them. The points are called nodes and the links are called edges. Both can carry facts, like a name or the date two people met. It is built to follow chains of links quickly, like friends of friends. A relational database can do this too, but it needs many joins and gets slow. Neo4j is a well-known example.

Common mistake

Using a graph database for plain lists of records. If the links are not the point, a table is simpler.

Key takeaways

  1. 1
    Nodes and edges. Things and the links between them.
  2. 2
    Follow the links. Fast across many hops.
  3. 3
    For linked data. Friends, routes, networks.