当前位置:网站首页>Show profiles of MySQL is used.
Show profiles of MySQL is used.
2022-07-29 05:55:00 【Spicy next door 4】
To analyze sql The execution time and performance . We can use show profiles Analyze .
First check to see if it is on :
show VARIABLES like "profiling"
If it is turned on, the value will be ON. If it is not enabled, use the following statement to enable .
set profiling='on'
Query the execution of the latest statement :
SHOW PROFILES
The result of execution is :
You can see query_id by 127 The implementation of 1.12 second . So what causes it to execute slowly can be queried with the following statement
SHOW PROFILE cpu,block io for query 127
The result of execution is :
You can see that this statement takes a lot of time to execute . Because the database has 50 Ten thousand data . Then sort him .
边栏推荐
- Refresh, swagger UI theme changes
- Ribbon学习笔记二
- 量化开发必掌握的30个知识点【什么是Level-2数据】
- Training log II of the project "construction of Shandong University mobile Internet development technology teaching website"
- Countdown of the uniapp component (such as the countdown to reading the agreement and the countdown to completing learning)
- Idea using JDBC to connect mysql database personal detailed tutorial
- Training log 4 of the project "construction of Shandong University mobile Internet development technology teaching website"
- Nailing alarm script
- day02 作业之文件权限
- MOVE PROTOCOL全球健康宣言,将健康运动进行到底
猜你喜欢
day02作业之进程管理
Bare metal cloud FASS high performance elastic block storage solution
Changed crying, and finally solved cannot read properties of undefined (reading 'parsecomponent')
以‘智’提‘质|金融影像平台解决方案
量化开发必掌握的30个知识点【什么是Level-2数据】
"Shandong University mobile Internet development technology teaching website construction" project training log V
【数据库】数据库课程设计一一疫苗接种数据库
Training log 4 of the project "construction of Shandong University mobile Internet development technology teaching website"
完全去中心化的编程模式,不需要服务器,也不需要ip,就像一张漫无目的的网络、四处延伸
30 knowledge points that must be mastered in quantitative development [what is level-2 data]
随机推荐
Fantom (FTM) surged 45% before the FOMC meeting
数组的基础使用--遍历循环数组求出数组最大值,最小值以及最大值下标,最小值下标
Breaking through the hardware bottleneck (I): the development of Intel Architecture and bottleneck mining
Plato Farm有望通过Elephant Swap,进一步向外拓展生态
极致通缩和永动机模型,将推动 PlatoFarm 爆发
闪贷Dapp的调研及实现
30 knowledge points that must be mastered in quantitative development [what is individual data]?
C# 判断用户是手机访问还是电脑访问
Bare metal cloud FASS high performance elastic block storage solution
Differences between href and SRC
我的理想工作,码农的绝对自由支配才是最重要的——未来创业的追求
主流实时流处理计算框架Flink初体验。
Xsan is highly available - xdfs and San are integrated with new vitality
全闪分布式,如何深度性能POC?
Markdown语法
『全闪实测』数据库加速解决方案
Gluster cluster management analysis
How to make interesting apps for deep learning with zero code (suitable for novices)
超简单集成HMS ML Kit 人脸检测实现可爱贴纸
Thinkphp6 output QR code image format to solve the conflict with debug