For isolation characteristic of transaction management in database, two mechanisms are used: PCC and OCC.
PCC(Pessimistic Concurrency Control): get lock before access;
application: competitive race conditions; or when the cost of lock protection is lower than that of rollback
OCC(Optimistic Concurrency Control): read, check and write
application: less competitive race conditions; or when the cost of occasional rollback is lower than that of consistent lock
数据库 PCC OCC
最新推荐文章于 2025-06-04 10:10:56 发布
1008

被折叠的 条评论
为什么被折叠?



