Semicolony ELI5 · comic

Isolation levels.

A dial deciding how much of everyone else’s half-finished typing your transaction gets to see.

  1. 1

    Both writers believe they have the document to themselves; the database decides how true that gets to be.

  2. I cited that line!
    unsaved draft read it, then it vanished
    2

    A dirty read: the line was never committed, so anything built on it rests on an event that never happened.

  3. only saved work shows
    3

    Read committed is the floor most databases default to — drafts are invisible, only saved edits count.

  4. pinned line re-read, same answer
    4

    Repeatable read adds a promise: once your transaction reads a line, that answer holds until you finish.

  5. I counted three. Now four?
    new line! ? a phantom appears
    5

    Pinning lines you have read cannot stop brand-new rows slipping into a range you already counted.

  6. waits one at a time — spotless
    6

    Serializable buys certainty by spending concurrency — that idle editor is healthy, just made to queue.

A dial on a shared document: loose and fast at the bottom, strict and safe at the top.
Semicolony semicolony.dev/eli5/isolation-levels/comic
← All ELI5 explainers