DB
-
Isolation level - 트랜잭션 격리 수준DB 2024. 9. 22. 20:00
1. Isolation Level 이란트랜잭션의 격리 수준(Isolation Level)이란, 여러 트랜잭션이 동시에 데이터베이스에 접근할 떄, 각 트랜젝션이 다른 트랜잭션의 영향을 받지 않고 독립적으로 실행될 수 있도록 보장하는 수준을 의미한다. 다중 사용자 데이터베이서 환경에서 여러 트랜잭션이 동시에 실행될 때, 트랜잭션이 올바르게 실행되고 DB 의 무결성을 유지하기 위해 2. Isolation Level 의 단계Read Uncommitted가장 낮은 수준의 isolation level다른 트랜잭션에서 아직 커밋되지 않은 데이터도 읽을 수 있음장점: 최고의 성능단점: Dirty read, Non-repeatable read, Phantom read 발생 가능성 높음Read Comitted다른 트랜잭..