摘要: 首先排除缓存干扰 对慢sql语句执行explain(主要注意字段key,type,extra,ref,table) 查看行数对不对(索引也不一定就是走最优的,是可能走错的:可能是采样错误,区分度不高,需要回表)解决办法:analyze table tablename重新统计,force index强 阅读全文
posted @ 2021-03-29 10:32 明月出青山root 阅读(56) 评论(0) 推荐(0) 编辑