Skip to content
KodeTrail

Camp 1 · Step 1 of 12

What is NoSQL?

Beyond tables: why new database families emerged, and the four shapes data can take.

10 min+50 XP

For decades, "database" meant tables and SQL. Then the giant web companies hit walls — billions of users, data spread across continents, shapes that wouldn't sit still — and a family of alternatives emerged: NoSQL ("not only SQL").

Why tables weren't always enough

Relational databases are magnificent, but they make trade-offs:

  • Fixed structure — every row has the same columns; changing that on a billion-row table is major surgery
  • Scaling up, not out — classically they prefer one bigger server over many small ones
  • Object mismatch — your app thinks in nested objects; tables are flat

NoSQL databases relax one or more of these in exchange for flexibility or horizontal scale.

The four families

FamilyData shapeFamous exampleSweet spot
DocumentJSON-like documentsMongoDBapp data with nested, evolving shapes
Key-valuekey → value pairsRediscaching, sessions, blazing speed
Wide-columnsparse giant tablesCassandrawrite-heavy data at massive scale
Graphnodes + relationshipsNeo4jnetworks: friends, routes, fraud rings

This trail focuses mostly on document databases — the most common first encounter — then tours the others.

Checkpoint

Which is a document database?

What's next

The lingua franca of document databases — JSON — in ten friendly minutes.

Next lesson

JSON: the language of documents

Estimated 12 min