当前位置:网站首页>[songhongkang MySQL database] [advanced chapter] [06] logical architecture of MySQL
[songhongkang MySQL database] [advanced chapter] [06] logical architecture of MySQL
2022-06-22 07:50:00 【lpruoyu】
Continuous learning & Ongoing update …
Learning attitude : Keep breaking away
【 Song Hongkang MySQL database 】【 Advanced 】【06】MySQL The logical structure of
Logical architecture analysis
The server handles client requests





Connectors

first floor adjoining course



The second floor Service layer





PS: Query cache component usage SQL Sentence as key, Query results as value; The hit rate is very low , Very chicken ribs .
The third level Engine layer
mysql> show engines;


Storage layer

Summary


SQL Execute the process

MySQL Medium SQL Execute the process

1. The query cache




The recommendation :( Be careful :MySQL8.0 Query caching is not allowed )

Do not use query caching :



2. Parser





3. Optimizer




4. actuator








summary
- The query cache
- Parser : Lexical analysis 、 Syntax analysis 、 Semantic check ——> The parse tree
- Optimizer : Logic optimization 、 Physical optimization ——> Implementation plan
- actuator : Call the storage engine API perform
MySQL8.0 in SQL Execution principle

1. confirm profiling Open or not


2. Perform the same many times SQL Inquire about

3. perform profiles

4. see profile




MySQL5.7 in SQL Execution principle






SQL Grammatical order


Database buffer pool

Buffer pool vs The query cache





How the buffer pool reads data


see / Set the size of the cache pool


Multiple Buffer cache example



Extended question



Reference resources
Song Hongkang in Silicon Valley : MySQL database ( Entry to advanced , Rookie to Daniel ).
The end of this paper , Thank you for your attention and support !
边栏推荐
- 4、 Button component
- Use multithreading to speed up your crawler
- A training summary of Intranet penetration test
- 模电实验——实验一 晶体管共射极单管放大器
- Problems caused by canvas palette width and height and canvas width and height
- Cocoapods creates private libraries and publishes them
- Microsoft Remote Desktop 10.7.6 official
- Do you want to modify the title of the website
- Qualcomm platform msm8953 display subsystem learning
- Docker command, docker installation sqlserver2019, docker installation MySQL (continuous update)
猜你喜欢

Wx applet vant UI call interface to realize two-level cascade

An example shows the difference between let and VaR

Remote Desktop Manager

Open version - inventory description

Toyota bz4x canceled the launch conference. Even if the low-temperature charging problem does not exist, how about the product strength?

Crmeb open version 4.3

Can Taobao batch copy babies synchronize the original baby inventory

目标检测系列——开山之作RCNN原理详解

AutoCAD 2020.3中文版 (旧版本)

Get through - coupons
随机推荐
网站如何提高百度权重
【图论常见模板题】4种最短路解法和2种最小生成树解法
CollectionViewCell
Wechat games (I)
Crmeb open source version, a free mall worth trying
微信小游戏(五)
JS to assign values to two objects with the same attributes
微信小游戏(一)
New year's Day mall material Icon
Usage and understanding of async/await in JS
AutoCAD 2020.3中文版 (旧版本)
Common array operations in JS
模电实验——实验二 JFET共源极放大电路
9、 Textinput component
ES6 set data type de duplication of array, intersection, union and difference
力扣(LeetCode)172. 阶乘后的零(2022.06.21)
模板代码概述
Leetcode 172 Zero after factorial (2022.06.21)
easy-rule 初窥
Docker install redis