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
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
| Level | Can see uncommitted changes from others? |
|---|---|
| READ UNCOMMITTED | Yes (rare, risky) |
| READ COMMITTED | No |
| REPEATABLE READ | No, and repeated reads stay consistent |
| SERIALIZABLE | No, transactions behave as if run one at a time |
Check yourself
1. A stricter isolation level generally trades...
Consistency vs concurrency trade-off.