当前位置:网站首页>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 
边栏推荐
- Difference between value and placeholder
- Customize redistemplate tool class
- Why is the operation unsuccessful (unresolved) uncaught syntaxerror: invalid or unexpected token (resolved)
- Write the first CUDA program
- How programmers find girlfriends through blind dates
- Flex flexible layout, box in the middle of the page
- C import Xls data method summary V (complete code)
- Pytoch residual network RESNET
- Magical usage of edge browser (highly recommended by program ape and student party)
- Do you know the eight signs of a team becoming agile?
猜你喜欢

Maximum entropy model

How programmers find girlfriends through blind dates

Infiltration learning diary day19

Yyds dry goods inventory hand-in-hand teach you the development of Tiktok series video batch Downloader

SQL statement

Openbionics robot project introduction | bciduino community finishing

MySQL introduction - functions (various function statistics, exercises, details, tables)

How to subcontract uniapp and applet, detailed steps (illustration) # yyds dry goods inventory #
![[turn] solve the problem of](/img/c2/368582a8ed26254409fe391899ba41.jpg)
[turn] solve the problem of "RSA public key not find" appearing in Navicat premium 15 registration

The automatic control system of pump station has powerful functions and diverse application scenarios
随机推荐
Small program graduation project based on wechat reservation small program graduation project opening report reference
Trading software programming
Ka! Why does the seat belt suddenly fail to pull? After reading these pictures, I can't stop wearing them
Huawei cloud micro certification Huawei cloud computing service practice has been stable
1189. Maximum number of "balloons"
The difference between lambda expressions and anonymous inner classes
Portable two-way radio equipment - current market situation and future development trend
When tidb meets Flink: tidb efficiently enters the lake "new play" | tilaker team interview
Pyrethroid pesticide intermediates - market status and future development trend
Example 072 calculation of salary it is known that the base salary of an employee of a company is 500 yuan. The amount of software sold by the employee and the Commission method are as follows: Sales
Winter vacation daily question -- a single element in an ordered array
How programmers find girlfriends through blind dates
G3 boiler water treatment registration examination and G3 boiler water treatment theory examination in 2022
Difference between value and placeholder
Pyinstaller packaging py script warning:lib not found and other related issues
PMP daily three questions (February 14, 2022)
Hamburg University of Technology (tuhh) | intelligent problem solving as integrated hierarchical reinforcement learning
Feign implements dynamic URL
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.
IPv6 experiment