Skip to content
  • DB Internals · System Design

DB Internals

LearnViaNotes @learnvianotes· 2 min read

Under the hood mechanics of Multi-Version Concurrency Control, transaction isolation anomalies, 2PL, index types, deadlock detection, and cost-based query optimization.

MVCC (Multi-Version Concurrency Control)

Isolation Levels & Anomalies Matrix

ANSI SQL & Snapshot Isolation Anomalies

Isolation LevelDirty ReadNon-Repeatable ReadPhantom ReadWrite Skew
Read UncommittedAllowedAllowedAllowedAllowed
Read CommittedPreventedAllowedAllowedAllowed
Repeatable ReadPreventedPreventedAllowed (SQL Standard)Allowed
Snapshot IsolationPreventedPreventedPreventedAllowed
Serializable (SSI)PreventedPreventedPreventedPrevented

Locking & Concurrency Control

Deadlock Detection & Prevention

Cost-Based Query Optimizer (CBO)

Free for students and teachers

Write notes like this one

Cards for every idea, quizzes and flashcards, read aloud — on the web and your phone.

Something wrong with this note? Open it to report