낙관적 락과 비관적 락의 차이점은 무엇인가요? #200
Unanswered
Chocochip101
asked this question in
Database
Replies: 1 comment 1 reply
-
|
잠금 전략으로는 여러 트랜잭션 간 충돌이 일어나지 않을 것이라 가정하는 낙관적 잠금(Optimistic Lock) , 여러 트랜잭션 간 충돌이 일어날 것이라 가정하는 비관적 잠금(Pessimistic Lock) 이 있다. 비관적 락은 데이터에 대한 변경이 자주 발생하고, 충돌 가능성이 높은 환경에 선호된다. 데이터를 처음부터 잠그는 방식으로 충돌을 방지한다.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
.
Beta Was this translation helpful? Give feedback.
All reactions