当前位置:网站首页>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 
边栏推荐
- Openbionics exoskeleton project introduction | bciduino community finishing
- Bacteriostatic circle scanning correction template
- Development of user-defined navigation bar in uniapp
- How to subcontract uniapp and applet, detailed steps (illustration) # yyds dry goods inventory #
- 求esp32C3板子連接mssql方法
- Pyrethroid pesticide intermediates - market status and future development trend
- Use classname to modify style properties
- JVM performance tuning and practical basic theory - medium
- The automatic control system of pump station has powerful functions and diverse application scenarios
- Intel's new GPU patent shows that its graphics card products will use MCM Packaging Technology
猜你喜欢

Huawei cloud micro certification Huawei cloud computing service practice has been stable

Example 073 square sum value judgment programming requires the input of a and B, if a ²+ b ² If the result of is greater than 100, a is output ²+ b ² Value, otherwise output the result of a + B.

Small program graduation project based on wechat examination small program graduation project opening report function reference

Feign implements dynamic URL

Use classname to modify style properties

Final consistency of MESI cache in CPU -- why does CPU need cache

Applet graduation design is based on wechat course appointment registration. Applet graduation design opening report function reference

Pytoch residual network RESNET

MySQL deadly serial question 2 -- are you familiar with MySQL index?
![Setting function of Jerry's watch management device [chapter]](/img/0b/8fab078e1046dbc22aa3327c49faa7.jpg)
Setting function of Jerry's watch management device [chapter]
随机推荐
Summarize the past to motivate yourself to move on
Prose article appreciation - the rain in the warm country has never changed into cold, hard and brilliant flowers. Knowledgeable people think he is monotonous, and he thinks he is unlucky, doesn't he?
Three layer switching ①
A fan summed up so many interview questions for you. There is always one you need!
C import Xls data method summary II (save the uploaded file to the DataTable instance object)
Notice on Soliciting Opinions on the draft of information security technology mobile Internet application (APP) life cycle security management guide
14. Process time
Jerry's watch information type table [chapter]
How to delete MySQL components using xshell7?
Life cycle of instance variables, static variables and local variables
C import Xls data method summary V (complete code)
High level application of SQL statements in MySQL database (I)
Three layer switching ②
Question C: Huffman tree
Jerry's synchronous weather information to equipment [chapter]
2020-12-02 SSM advanced integration Shang Silicon Valley
Conditional statements of shell programming
MySQL utilise la vue pour signaler les erreurs, Explicit / show ne peut pas être publié; Verrouillage des fichiers privés pour la table sous - jacente
Pytoch residual network RESNET
Hamburg University of Technology (tuhh) | intelligent problem solving as integrated hierarchical reinforcement learning