DB 격리 수준 & Lock 시뮬레이터
두 트랜잭션의 동시 실행 과정을 단계별로 시각화합니다. 격리 수준과 시나리오를 바꿔가며 이상 현상을 직접 확인해보세요.
격리 수준 (Isolation Level)
Read Uncommitted
Read Committed
Repeatable Read
Serializable
시나리오 (Anomaly)
Dirty Read
Non-repeatable Read
Phantom Read
현재 단계 / S-Lock
블로킹 / X-Lock
이상 현상 발생
새 row (Phantom)
T1 (Transaction 1)
대기
데이터베이스
Active Locks
MVCC 버전
T2 (Transaction 2)
대기
실행 로그
▶ 다음 단계
⏩ 자동 실행
↺ 초기화
격리 수준별 이상 현상 비교
Read Uncommitted
Dirty Read ✕
Non-repeatable ✕
Phantom Read ✕
Read Committed
Dirty Read ✓
Non-repeatable ✕
Phantom Read ✕
Repeatable Read
Dirty Read ✓
Non-repeatable ✓
Phantom Read ✕
Serializable
Dirty Read ✓
Non-repeatable ✓
Phantom Read ✓