Isolation levels ควบคุมว่า transaction ที่ทำงานพร้อมกันสามารถเห็นการเปลี่ยนแปลงที่ยังไม่ได้ commit (หรือกำลังดำเนินการอยู่) ของกันและกันได้มากเพียงใด — โดยแลกเปลี่ยน ความสอดคล้อง (consistency) กับ ประสิทธิภาพ/concurrency isolation ที่สูงขึ้นป้องกัน anomalies ได้มากขึ้นแต่เพิ่มการ locking/contention
Concurrency anomalies (สิ่งที่ isolation ป้องกัน)
DIRTY READ → reading another transaction's UNCOMMITTED changes (which may roll back)
NON-REPEATABLE READ → re-reading a row gives different values (another txn UPDATED it)
PHANTOM READ → re-running a query returns different ROWS (another txn INSERTED/DELETED)
