What Is a Transaction Isolation Level?
An isolation level defines the degree to which concurrent transactions are shielded from one another, from read uncommitted up through serializable. Higher levels prevent more anomalies such as dirty reads and phantom reads but allow less concurrency. Each level is a defined point on the trade-off between strict consistency and throughput.
Why it matters
Choosing the isolation level decides which read anomalies your application can encounter. Picking too low risks subtle data bugs; picking too high can throttle throughput under load.
Related guides
What Is a Dirty Read?A dirty read happens when a transaction reads data another transaction has changed but not yet committed, ris…
What Is a Phantom Read?A phantom read happens when a transaction re-runs a range query and finds new rows that another committed tra…
What Is Pessimistic Locking?Pessimistic locking takes a lock on data as soon as it is read, blocking other transactions from changing it…