
Mysql 性能优化
翔之天空
很懒,什么都没留下
展开
-
Mysql5.7 order by 影响 产生 ICP
Mysql5.7 再用order by时候 ,有一种情况 会对已用索引的条件进行ICP处理,正常不应该出现,Mysql8.0无此现象产生 示例如下: --orderid有普通索引,ct字段无索引,主键是id create table table1 ( id int not null , orderid varchar(10) not null, ct int not nu...原创 2019-11-07 15:32:47 · 400 阅读 · 0 评论 -
Mysql慢查询日志
官方文档介绍:https://dev.mysql.com/doc/refman/5.7/en/slow-query-log.html 作用: 慢日志可以查询执行慢的sql,用于处理sql性能问题。 参数: slow_query_log参数控制是否开启慢日志查询记录,具体是记录执行时间大于long_query_time参数 而且查询行数不少于min_examined_row_li...原创 2018-10-15 14:48:38 · 811 阅读 · 0 评论