set profiling=1;
执行select sql语句
show profiles;
show profile cpu,block IO io for query 1;
主要查看 sorting result选项
本文介绍了一种使用SQL语句进行性能分析的方法,通过设置配置项并执行特定的SQL命令来获取查询的性能概况,重点关注排序结果的性能指标。
set profiling=1;
执行select sql语句
show profiles;
show profile cpu,block IO io for query 1;
主要查看 sorting result选项
516

被折叠的 条评论
为什么被折叠?