<aside> 💡 Generated by BigBrain. Repeated material was merged while distinct trade-offs, caveats, examples, and operational details were retained.
</aside>
This reference page consolidates key concepts, mechanisms, and trade-offs in databases, storage, and data modeling. It covers database selection, internals, indexing, partitioning, sharding, storage engines, write-ahead logging (WAL), multiversion concurrency control (MVCC), NoSQL families, schemas, normalization, and data-model trade-offs. The material is organized from foundational principles to design choices and operational concerns.
WAL ensures durability and crash recovery by recording changes in a sequential log before applying them to the database. Key mechanisms include:
PostgreSQL uses WAL for in-place updates, maintaining a dirty page table and transaction table for recovery. It employs ARIES-like algorithms with compensation log records (CLRs) for undo operations.
MVCC provides non-blocking reads and writes by maintaining multiple versions of data: