当前位置:网站首页>Advanced learning of MySQL -- Application -- storage engine
Advanced learning of MySQL -- Application -- storage engine
2022-07-04 01:59:00 【Magic pig 9898】
mysql Architecture of
Work of all levels
adjoining course
Mainly completes some similar to the connection processing , Authorized certification , And related safety programs , The server will also verify the operation authority of each client for secure access .
Service layer
The second layer mainly completes some core services , And complete the cache query , SQL Analysis and optimization of , Execution of some built-in functions , All the cross storage engine functions are also implemented in this layer . Like the process , Functions, etc .
Engine layer
The storage engine is really responsible for MySQL Storage and reading of data in , Server pass API Communicating with the storage engine , Different storage engines have different functions , In this way, according to our own needs , To choose the right storage engine .
Storage layer
It mainly stores the data on the file system , And complete the interaction with the storage engine
Introduction to storage engine
The storage engine is to store data , Index , to update / Implementation of query data and other technologies , The storage engine is table based , Not library based , So the storage engine is also called table type . ( To put it bluntly , In a database , The engine of each table may be different )
Query key table statement
Found that the default engine is InnoDB.
Query the storage engine supported by the current database
show engines ;
Specify the engine when creating the table
Storage engine features
InnoDB
InnoDB Logical storage structure
therefore
The table space corresponds to ibd file .
The obvious , Row is the smallest unit of storage , And what information does a line contain ?
Last transaction id, Some pointers , There are also field information .
stay InnoDB In the logic of
Page is the smallest unit of disk operation , And the size is fixed 16K, The size of the zone is fixed . yes 1M. It means that there are 64 page .
MyISAM
Files involved in disk
Comparison summary
Storage engine selection
There is no good or bad engine , See the demand
边栏推荐
- Servlet simple verification code generation
- It's corrected. There's one missing < /script >, why doesn't the following template come out?
- When the watch system of Jerry's is abnormal, it is used to restore the system [chapter]
- MySQL deadly serial question 2 -- are you familiar with MySQL index?
- Yyds dry goods inventory it's not easy to say I love you | use the minimum web API to upload files
- Development of user-defined navigation bar in uniapp
- Small program graduation project based on wechat e-book small program graduation project opening report function reference
- Rearrangement of tag number of cadence OrCAD components and sequence number of schematic page
- Portapack application development tutorial (XVII) nRF24L01 launch C
- Meta metauniverse female safety problems occur frequently, how to solve the relevant problems in the metauniverse?
猜你喜欢
MySQL advanced (Advanced) SQL statement (I)
ES6 deletes an attribute in all array objects through map, deconstruction and extension operators
Infiltration learning diary day19
Bacteriostatic circle scanning correction template
Feign implements dynamic URL
Pytoch residual network RESNET
Introduction to graphics: graphic painting (I)
Conditional statements of shell programming
Applet graduation project based on wechat selection voting applet graduation project opening report function reference
A fan summed up so many interview questions for you. There is always one you need!
随机推荐
Idea if a class cannot be found, it will be red
Servlet simple verification code generation
A. Div. 7
Openbionics exoskeleton project introduction | bciduino community finishing
A. ABC
Jerry's synchronous weather information to equipment [chapter]
Solution to the problem that jsp language cannot be recognized in idea
Winter vacation daily question -- a single element in an ordered array
Méthode de calcul de la connexion MSSQL de la carte esp32c3
51 single chip microcomputer timer 2 is used as serial port
Idsia & supsi & usi | continuous control behavior learning and adaptive robot operation based on Reinforcement Learning
SQL statement
Hunan University | robust Multi-Agent Reinforcement Learning in noisy environment
IPv6 experiment
MySQL deadly serial question 2 -- are you familiar with MySQL index?
MySQL advanced SQL statement (1)
Writeup (real questions and analysis of ciscn over the years) of the preliminary competition of national college students' information security competition
Make drop-down menu
Ka! Why does the seat belt suddenly fail to pull? After reading these pictures, I can't stop wearing them
C import Xls data method summary IV (upload file de duplication and database data De duplication)