Skip to content
realproblem.me

Series · 4 parts · 60 min total

Database Internals

What happens inside the storage engine when you write a row.

To be written: who this series is for, in one sentence.
Start part 1

The parts

  1. 1
    Deep dive12 min

    UUID v4 vs UUID v7 vs Snowflake — Pick the Right Primary Key

    Your primary key decides how every insert lands in the index.

  2. 2
    Deep dive24 min

    LSM Trees, the Deep Cut — MemTable, WAL, SSTables, Compaction and Why Your Writes Are So Fast

    Why RocksDB, Cassandra and ClickHouse write so fast, and what they pay for it later.

  3. 3
    Deep dive11 min

    The Data Structure That Lies to Save Your Disk — How Bloom Filters Say "Definitely Not Here" in 1% of the Space

    A data structure that is wrong on purpose, and saves your disk because of it.

  4. 4
    Deep dive13 min

    How Redis Actually Deletes Expired Keys — The Lazy + Active Hybrid You Didn't Know About

    A key with TTL zero can still use memory. Here is why.

Get new parts by email

One production failure explained every two weeks. Free.

Free. Every two weeks. Unsubscribe in one click.