Which anomalies does each isolation level prevent: dirty, non-repeatable and phantom reads?
Short answer
The isolation level decides how much of other transactions' changes you see: higher means fewer bad reads but slower. Defaults: PostgreSQL READ COMMITTED, MySQL REPEATABLE READ.
3 points to say:
- Dirty: reading uncommitted data.
- Non-repeatable: the same row reads differently.
- Phantom: the same filter returns a different set of rows.
Keep reading the deep dive
Create a free account to read the full explanation and follow-up questions, mark questions as studied and review them on a schedule.