Memory and disk
A database server has two places to keep data. Memory is fast — a change takes nanoseconds — but everything in it vanishes when the process stops. Disk survives a crash or a power cut, but a write that must be confirmed as truly on the device (an fsync) is thousands of times slower.
A storage engine is the part of the database that decides what goes where, and when. Every design is a different answer to one question: how do you get the speed of memory and the safety of disk at once?
Key idea
Tables are stored as fixed-size pages — typically 8 or 16 KB, each holding dozens of rows. The engine keeps recently used pages in memory and reads the rest from disk on demand.