All lessons in Software Engineering: Programs, Systems, and Maintainable Software

Storage Engine Internals

Compare page-oriented and log-structured storage under an explicit workload.

40 minutes · Members lesson · preview

What you will learn

  • Compare page-oriented and log-structured indexing under a stated workload.
  • Explain read, write, and space amplification as separate costs.
  • Identify which guarantees an index structure does not establish by itself.

The lending database can answer a key lookup without scanning every row, but the index must itself be stored and updated. One design changes pages in a tree; another accumulates recent writes and merges sorted runs later. Both move work around, and the right comparison depends on reads, writes, ranges, memory, and storage behavior.

This optional lesson examines structural tradeoffs. It does not ask you to implement a production storage engine or infer a database's complete behavior from the name of one data structure.

Choose another lesson