Isolation Levels & Anomalies
7 min read.
Run dirty reads, read skew, lost updates and write skew between two transactions, then watch read committed, snapshot isolation and serializable stop them.
Think of it this way: Isolation levels are like rules for a shared notebook. Read committed: you may only read pages that are finished. Snapshot isolation: you get a photocopy of the notebook when you start, so it never changes under you. Serializable: the result must look as if everyone took turns with the notebook, one at a time.
Read uncommitted: A is changing the balance while B reads it.
Check your understanding
Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.
Which level stops it?
Sort each anomaly by the weakest isolation level that prevents it.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
Read committed
Drop items hereSnapshot isolation
Drop items hereSerializable
Drop items hereQuiz
8 questionsWhich anomaly does read committed prevent?
Done with this lesson?
Sign in free to keep your progress, streak and quiz scores.