What do the words on this site actually mean?
One picture and one line each. No prior knowledge. Five minutes.
A database is a library. Tables are shelves. Rows are books. The card catalog is the index, the loan desk is where transactions happen, and the branch libraries are the shards.
Learn the library version of each concept, and the database version is the same job with files instead of paper. When a term below feels abstract, picture the shelf.
An index is the card catalog. It trades a little disk and a little write cost for lookups that stay fast as the shelves fill.
Why it exists. Without it, every query reads the whole table, and each new row makes that slower.
One fact, one place. The author's name lives on a single author card, so a correction has exactly one place to land.
Why it exists. When one fact is copied into many rows, an update that misses one copy leaves the data disagreeing with itself.
A join matches two tables on a shared key. The key is what makes it cheap. Without a key, it reads both tables end to end.
Why it exists. Normalized data lives in separate tables. A join puts it back together to answer one question.
A transaction groups steps so they commit together or roll back together. There is no half-borrowed state.
Why it exists. Real work takes several steps, like taking money from one account and adding it to another. A crash between them must not leave half of it done.
Four promises, one line each. Durable is the promise the log pays for: the record hits disk before the commit returns.
Why it exists. These four promises are why you can trust a database with money and orders, and not just a folder of files.
A deadlock is a circle of waiting. Nobody can move, so the database picks one transaction, rolls it back, and lets the other finish.
Why it exists. In any busy app, two transactions will sometimes lock the same rows in opposite order. The database has to break the circle, or both would wait forever.
Partitioning splits one table into parts on the same server. A query that names the part reads only that part.
Why it exists. A huge table is slow to scan, to index and to clean up. Parts let a query, or a cleanup job, touch only what it needs.
Sharding is partitioning across machines. It buys room to grow, and the price is that a query spanning branches is a query across the network.
Why it exists. One server has a ceiling: disk, memory and writes per second. Sharding is how you grow past it.
A replica replays the primary's log, so it holds the same books. When the primary fails, the copy is what keeps the doors open, once something promotes it to primary. The copy can trail the original, and something still has to promote it before it can take writes; the next concept covers the lag.
Why it exists. One server is one failure away from an outage, and one disk away from losing data. A copy is the way back.
Writes go to the primary, reads go to the copies. The split only works if your readers can live with a copy a few seconds behind.
Why it exists. Most apps read far more than they write. Copies can share the reads, so the primary keeps up with the writes.
That is the vocabulary. Next: Start here, one insert end to end, then the three rules that run every database on this site.
The primary is slow because of writes. Someone suggests adding two read replicas. In your own words, why will that not help, and what would?
Write your answer down first. Then open mine.
Why not: every replica has to apply every write the primary makes. Replicas take reads off the primary; they do nothing for writes. They also add lag, so anything that reads its own writes from a replica may not see them.
What helps: making each write cheaper (fewer indexes, smaller rows, batching), moving writes that do not need to be there (sessions, counters) to a store built for them, and only then splitting the writes across several primaries.
How do databases actually work? From one row on disk to transactions: the words you need, PostgreSQL, MySQL and MongoDB from the files up, then Redis, Cassandra and vector search, side by side, and the query and concurrency traps.