当前位置:网站首页>Bufferpool caching mechanism for executing SQL in MySQL
Bufferpool caching mechanism for executing SQL in MySQL
2022-07-03 22:41:00 【it00zyq】
One 、MySQL Bottom structure diagram

Two 、MySQL Logging and caching mechanism
After watching MySQL The underlying structure diagram of , Many people may have such questions : Why? MySQL You can't directly update the data on the disk, and set up such a complex mechanism to execute SQL Well ?
Because if every request is directly to MySQL Read and write data files , It's random IO, For each read and write , All mechanical hard disks have seek time and rotation delay , Therefore, the performance of directly updating data disk files is relatively low , For SSDs , You also need to determine the read and write location through the address translation mechanism , Therefore, directly updating disk files cannot make the database resist high concurrency .
MySQL This mechanism looks complex , But it can ensure that every update request is to update memoryBufferPool, Then write log files sequentially , At the same time, it can also ensure the data consistency under various abnormal conditions . The performance of updating memory and writing log files on disk sequentially is very high , Much higher than random reading and writing disk files .
binlog: It belongs to MySQL Server Layer log file , It is mainly used to recover database data .undo log:InnoDB Engine specific log files , It is mainly used to recover when a transaction is rolled back Buffer Pool Data in cache pool .redo log:InnoDB Engine specific log files , It is mainly used to recover after system downtime and restart Buffer Pool Data that has not been written to the disk in the cache pool .
边栏推荐
- To rotate 90 degrees clockwise and modify the video format
- How does sentinel, a traffic management artifact, make it easy for business parties to access?
- Conditional statements of shell programming
- IO flow review
- Kali2021.4a build PWN environment
- Covariance
- 2022 safety officer-a certificate registration examination and summary of safety officer-a certificate examination
- Is it safe and reliable to open an account and register for stock speculation? Is there any risk?
- [sg function]split game (2020 Jiangxi university student programming competition)
- [Android reverse] use DB browser to view and modify SQLite database (download DB browser installation package | install DB browser tool)
猜你喜欢
![[template summary] - binary search tree BST - Basics](/img/78/782129abea06c8e3bef69a121cbce0.jpg)
[template summary] - binary search tree BST - Basics

Esp-idf turns off serial port log output.
Creation of the template of the password management software keepassdx

QGIS grid processing DEM data reclassification

Pointer concept & character pointer & pointer array yyds dry inventory

Kali2021.4a build PWN environment

2 spark environment setup local

Blue Bridge Cup Guoxin Changtian single chip microcomputer -- software environment (II)

Pat grade A - 1164 good in C (20 points)
![[actual combat record] record the whole process of the server being attacked (redis vulnerability)](/img/9c/34b916aca2f9270ec4cf4651f0de7e.jpg)
[actual combat record] record the whole process of the server being attacked (redis vulnerability)
随机推荐
Creation of the template of the password management software keepassdx
Shell script three swordsman awk
Rest reference
Simple solution of m3u8 file format
Conditional statements of shell programming
2022 electrician (elementary) examination questions and electrician (elementary) registration examination
IDENTITY
AST (Abstract Syntax Tree)
2022 high altitude installation, maintenance and removal of examination question bank and high altitude installation, maintenance and removal of examination papers
Oil monkey plug-in
Data consistency between redis and database
LeetCode 1646. Get the maximum value in the generated array
Quick one click batch adding video text watermark and modifying video size simple tutorial
This time, thoroughly understand bidirectional data binding 01
To rotate 90 degrees clockwise and modify the video format
How the computer flushes the local DNS cache
Ppt image processing
C3p0 connection MySQL 8.0.11 configuration problem
. Net ADO splicing SQL statement with parameters
[sg function] 2021 Niuke winter vacation training camp 6 h. winter messenger 2