当前位置:网站首页>Talk about mvcc multi version concurrency controller?

Talk about mvcc multi version concurrency controller?

2022-07-07 05:23:00 A little dog

say MVCC Multi version concurrency controller ?





MVCC What is it? ?

MVCC It is a multi version concurrent controller , It is generally used for concurrent access to databases .MVCC Do not use locks to control transactions , And it can solve dirty reading 、 Non repeatability 、 Fantasy reading .( Unable to solve the problem of missing updates .)

Specific operation

Innodb Each row of data has an upward pointing version data stored in undo log in , Form a version chain .
If the record is updated , The latest data will be written to undo log in , And the hidden pointer points to the previous version .
At this point, the query will find the last undo log edition .
MVCC benefits : Read without lock 、 Read write conflict , Increased concurrency , Guaranteed business .






Please correct me if there is any mistake

原网站

版权声明
本文为[A little dog]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207062328470291.html