![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
matao_jack
没有什么可以打败我,除非是我自己不想成功
展开
-
mysql性能优化之sql
SQL优化方式 1、避免全表扫描 对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。商业化开发中,强制要求,不能全表扫描。尽量将查询type提升到ref级别之上,必须是index级别之上。 const > eq_ref > ref > range > index > ALL 2、避免判断null值 应尽量避免在 w...原创 2019-11-16 20:19:55 · 131 阅读 · 0 评论 -
mysql性能优化之索引
1、存储引擎: sql语句: SELECT * from information_schema.ENGINES 上图可知道mysql提供了八种存储引擎原创 2019-11-15 20:46:56 · 172 阅读 · 0 评论