当前位置:网站首页>MySQL advanced part 2: MySQL architecture
MySQL advanced part 2: MySQL architecture
2022-07-05 06:13:00 【Dawnlighttt】
List of articles

Whole MySQL Server It consists of
- Connection Pool : Connection pool components
- Management Services & Utilities : Manage service and tool components
- SQL Interface : SQL Interface component
- Parser : Query analyzer component
- Optimizer : Optimizer components
- Caches & Buffers : Buffer pool components
- Pluggable Storage Engines : Storage engine
- File System : file system
1) adjoining course
At the top are some clients and link services , Contains the local sock Communication and most are client based / The implementation of server-side tools is similar to TCP/IP Communication for . Mainly completes some similar to the connection processing 、 Authorized certification 、 And related safety programs . The concept of thread pool is introduced in this layer , Provide threads for clients accessing through authentication security . Also on this layer, we can implement the system based on SSL Security links for . The server will also verify the operation permissions it has for each client of secure access .
2) Service layer
The second layer architecture mainly completes most of the core service functions , Such as SQL Interface , 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 , Such as The process 、 Functions, etc . On this floor , The server parses the query and creates the corresponding internal parse tree , And it completes the corresponding optimization, such as determining the query order of the table , Whether to use index, etc , Finally, the corresponding execution operation is generated . If it is select sentence , The server also queries the internal cache , If the cache space is large enough , In this way, it can improve the performance of the system in the environment of solving a large number of read operations .
3) Engine layer
Storage engine layer , The storage engine is really responsible for MySQL The storage and extraction of data in , Server pass API Communicating with the storage engine . Different storage engines have different functions , So that we can according to our own needs , To choose the right storage engine .
4) Storage layer
Data storage layer , Mainly store the data on the file system , And complete the interaction with the storage engine .
Compared with other databases ,MySQL It's a little different , Its architecture can be applied in many different scenarios and play a good role . Mainly in the storage engine , Plug in storage engine architecture , Separate query processing from other system tasks and data storage and extraction . This architecture can choose the right storage engine according to the needs of the business and the actual needs .
边栏推荐
- Appium foundation - use the first demo of appium
- Liunx starts redis
- Transform optimization problems into decision-making problems
- The difference between CPU core and logical processor
- Regulations for network security events of vocational group in 2022 Guizhou Vocational College skill competition
- Wazuh開源主機安全解决方案的簡介與使用體驗
- Leetcode-6109: number of people who know secrets
- leetcode-3:无重复字符的最长子串
- Règlement sur la sécurité des réseaux dans les écoles professionnelles secondaires du concours de compétences des écoles professionnelles de la province de Guizhou en 2022
- Daily question 1688 Number of matches in the competition
猜你喜欢

Leetcode-6111: spiral matrix IV

开源存储这么香,为何我们还要坚持自研?

Sqlmap tutorial (II) practical skills I

Individual game 12

LeetCode 0107. Sequence traversal of binary tree II - another method

做 SQL 性能优化真是让人干瞪眼

Leetcode-6110: number of incremental paths in the grid graph

Overview of variable resistors - structure, operation and different applications

Time of process

Solution to game 10 of the personal field
随机推荐
RGB LED infinite mirror controlled by Arduino
MIT-6874-Deep Learning in the Life Sciences Week 7
对for(var i = 0;i < 5;i++) {setTimeout(() => console.log(i),1000)}的深入分析
Records of some tools 2022
7. Processing the input of multidimensional features
shared_ Repeated release heap object of PTR hidden danger
LeetCode 0108.将有序数组转换为二叉搜索树 - 数组中值为根,中值左右分别为左右子树
Leetcode-556: the next larger element III
leetcode-22:括号生成
[rust notes] 15 string and text (Part 1)
LeetCode 0108. Convert an ordered array into a binary search tree - the median of the array is the root, and the left and right of the median are the left and right subtrees respectively
LeetCode 0107. Sequence traversal of binary tree II - another method
Sqlmap tutorial (1)
One question per day 1020 Number of enclaves
[cloud native] record of feign custom configuration of microservices
Appium自动化测试基础 — Appium测试环境搭建总结
Collection: programming related websites and books
Dichotomy, discretization, etc
1.14 - assembly line
WordPress switches the page, and the domain name changes back to the IP address