Home / Learn Secure SQL / Isolation Levels

Isolation Levels

How much concurrent transactions can see of each other.

Bottom lineHow much concurrent transactions can see of each other.

Breaking it down

Stricter to looserSERIALIZABLE(strictest)REPEATABLE READREAD COMMITTED(common default)READ UNCOMMITTED(loosest)
Stricter to looser

What it is

Isolation level controls what one in-progress transaction can see of another's uncommitted or just-committed changes; stricter levels are safer but can be slower.

Why it matters

Choosing too loose a level can let one request read inconsistent or soon-to-be-rolled-back data, which can quietly turn into an access control or data-integrity bug.

Mechanically speaking

Use your database's default unless you have a specific reason to change it, and understand what you are trading away if you loosen it.

Shows up in

  • Web application code review
  • Backend development
  • Database administration
LevelCan see uncommitted changes from others?
READ UNCOMMITTEDYes (rare, risky)
READ COMMITTEDNo
REPEATABLE READNo, and repeated reads stay consistent
SERIALIZABLENo, transactions behave as if run one at a time

Check yourself

1. A stricter isolation level generally trades...