2022-07-29 mysql/stonedb慢SQL-Q17-分析
2023-09-27 14:25:42 时间
摘要:
对Q17慢SQL进行分析
SQL分析:
SQL:
/stonedb57/install/bin/mysql -D tpch -e "
select
sum(l_extendedprice) / 7.0 as avg_yearly
from
lineitem,
part
where
p_partkey = l_partkey
and p_brand = 'Brand#23'
and p_container = 'MED BOX'
and l_quantity < (
select
0.2 * avg(l_quantity)
from
lineitem
where
l_partkey = p_partkey
);
"
explain分析:
*************************** 1. row ***************************
id: 1
select_type: PRIMARY
table: lineitem
partitions: NULL
type: ALL
possible_keys: NULL
相关文章
- go语言连接mysql、sqlx、sql注入
- mysql查询当天所有数据sql语句
- linux 安装软件之----------CentOS6.5安装与配置Mysql数据库
- mysql 慢sql日志的解读排查,慢sql日志开启
- MySQL存储过程及触发器
- MySQL 性能调优之SQL
- mysql时间截取函数和实现数据累加
- mysql sql语句中用括号处理or和and的运算顺序
- MySQL 操作命令梳理(5)-执行sql语句查询即mysql状态说明
- MySQL 5.7默认ONLY_FULL_GROUP_BY语义介绍
- MySql实现分页查询的SQL,mysql实现分页查询的sql语句 (转)
- 查看mysql正在执行的SQL语句,使用profile分析SQL执行状态
- Mysql导入Sql文件时报Error Code: 2013 - Lost connection to MySQL server during query
- mysql数据库 触发器简单实例
- MySQL与NoSQL——SQL与NoSQL的融合
- 2022-09-02 mysql/stonedb-IN句子使用HASH优化后-查询多个字符串结果不符合预期记录
- 2022-08-01 mysql/stoonedb慢SQL-Q18分析
- Mysql多表查询
- MySQL day03 SQL基础
- 牛客网mysql刷题记录
- Finding out largest tables on MySQL Server
- MySQL(Navicat)运行.sql文件时报错[Err] 2006 - MySQL server has gone away 的解决方法
- mysql聚集索引
- 65.网络安全渗透测试—[SQL注入篇4]—[MySQL+PHP-手工注入详解]
- MySQL This function has none of DETERMINISTIC, NO SQL...错误1418 的原因分析及解决方法 (转)
- 记录mysql正在执行的SQL语句