Skip to content

db 동시성 dirty read #22

Answered by guswns3371
LEEHYUNDONG asked this question in Q&A
Discussion options

You must be logged in to vote

트랜잭션 2는 데이터를 다시 읽지 않습니다
트랜잭션 1이 데이터를 a->b 로 갱신하면 트랜잭션2가 읽은 데이터는 b입니다.

이제 트랜잭션 1이 정상적으로 종료하면 트랜잭션2는 올바른 데이터를 읽은거지만,

트랜잭션 1이 비정상종료가 되면 데이터는 다시 b에서 a로 롤백됩니다. 결과적으로 트랜잭션2가 읽은 데이터는 b인거죠.(잘못된 데이터를 읽은 것)

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@LEEHYUNDONG
Comment options

LEEHYUNDONG Mar 31, 2022
Maintainer Author

@guswns3371
Comment options

@LEEHYUNDONG
Comment options

LEEHYUNDONG Apr 1, 2022
Maintainer Author

@LEEHYUNDONG
Comment options

LEEHYUNDONG Apr 1, 2022
Maintainer Author

@guswns3371
Comment options

Answer selected by LEEHYUNDONG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants