LSM Trees: Writes, Compaction, and Read Amplification
LSM trees turn random writes into sorted runs, then spend compaction, read, and space amplification to keep those runs useful.
2026-07-12 · 13 min read
LSM trees turn random writes into sorted runs, then spend compaction, read, and space amplification to keep those runs useful.
2026-07-12 · 13 min read
MVCC serves stable snapshots from versioned rows, then relies on visibility metadata and vacuum horizons to reclaim the history readers no longer need.
2026-06-28 · 12 min read
Database write-ahead logs make commits durable before data pages settle, then guide checkpointed redo and undo after a crash.
2026-06-16 · 13 min read
Read PostgreSQL plans from estimates to execution, diagnose cardinality errors and spills, and make index or query fixes safely.
2026-06-08 · 12 min read
Database replication moves an ordered change stream, but acknowledgement, replay, routing, and fencing determine freshness and failover safety.
2026-06-04 · 14 min read
Design normalized sources of truth and deliberate denormalized projections by assigning every business invariant a clear owner.
2026-05-23 · 14 min read
Operate native table partitions as one logical database table through deliberate pruning, indexing, lifecycle automation, and reversible migration.
2026-05-11 · 14 min read
Understand how distributed SQL composes consensus-backed ranges, transactional timestamps, and locality-aware query plans into one relational database.
2026-04-29 · 14 min read
Trace an OLAP query through column chunks, encodings, pruning, vectorized operators, and late materialization to understand where analytical speed comes from.
2026-04-17 · 15 min read
Design time-series storage around series identity, event time, append-heavy ingestion, bounded queries, late data, rollups, retention, and cardinality control.
2026-04-05 · 14 min read
Choose SQL, document, key-value, or wide-column storage by workload, consistency needs, query shape, scaling, and operational cost.
2026-01-26 · 13 min read
A practical guide to ACID, concurrency anomalies, MVCC, locks, serializable retries, invariant tests, and database guarantee boundaries.
2025-09-30 · 12 min read