Tag: Undo log

2 Posts

In-depth analysis and engineering practice of MySQL InnoDB MVCC mechanism
1. MVCC Architecture Design and Implementation Principles 1.1 Storage Engine Layer Architecture InnoDB uses a layered storage architecture to implement the MVCC mechanism: Memory structure: Buffer Pool: Data page cache pool (default 128MB) Undo Log Buffer: Transaction rollback log cache (default 16MB) Change Buffer: Non-unique index update buffer Disk structure: Clustered index B+ tree (primary key index) Secondary index B+ tree Undo...
Interview question: How does MySQL implement transactions, and what should we pay attention to in daily use?
In database development, transactions are one of the most important concepts, especially in scenarios with high concurrency and strict data consistency requirements. As a popular relational database, MySQL provides strong support for transactions, but many developers are not familiar with its implementation principles, design logic, and precautions in daily use. This article will deeply analyze the transaction implementation mechanism of MySQL, explain the four major characteristics of transactions and the problems they solve, analyze why MySQL is designed in this way, and propose some tips for developers to use transactions in their daily lives.