当前位置:网站首页>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
边栏推荐
- Applet graduation project based on wechat selection voting applet graduation project opening report function reference
- Meta metauniverse female safety problems occur frequently, how to solve the relevant problems in the metauniverse?
- MPLS③
- How to subcontract uniapp and applet, detailed steps (illustration) # yyds dry goods inventory #
- Openbionics exoskeleton project introduction | bciduino community finishing
- It's corrected. There's one missing < /script >, why doesn't the following template come out?
- Special copy UML notes
- When the watch system of Jerry's is abnormal, it is used to restore the system [chapter]
- Maximum likelihood method, likelihood function and log likelihood function
- Summarize the past to motivate yourself to move on
猜你喜欢
How to delete MySQL components using xshell7?
Introduction to superresolution
JVM performance tuning and practical basic theory - medium
Remember another interview trip to Ali, which ends on three sides
Will the memory of ParticleSystem be affected by maxparticles
Maximum entropy model
2020-12-02 SSM advanced integration Shang Silicon Valley
High level application of SQL statements in MySQL database (I)
From the 18th line to the first line, the new story of the network security industry
Iclr2022 | ontoprotein: protein pre training integrated with gene ontology knowledge
随机推荐
In yolov5, denselayer is used to replace focus, and the FPN structure is changed to bi FPN
Reading notes - learn to write: what is writing?
The boss said: whoever wants to use double to define the amount of goods, just pack up and go
Meta metauniverse female safety problems occur frequently. How to solve the related problems in the metauniverse?
I don't know why it can't run in the project and how to change it
Iclr2022 | ontoprotein: protein pre training integrated with gene ontology knowledge
Chapter 3.4: starrocks data import - Flink connector and CDC second level data synchronization
Neo4j learning notes
MySQL statement learning record
Will the memory of ParticleSystem be affected by maxparticles
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.
Setting function of Jerry's watch management device [chapter]
2022 new examination questions for safety management personnel of hazardous chemical business units and certificate examination for safety management personnel of hazardous chemical business units
Maximum entropy model
Rearrangement of tag number of cadence OrCAD components and sequence number of schematic page
Question d: Haffman coding
[typora installation package] old typera installation package, free version
Introduction to Tianchi news recommendation: 4 Characteristic Engineering
Trading software programming
After listening to the system clear message notification, Jerry informed the device side to delete the message [article]