摘要: mysql优化 1.sql优化 1:尽量避免 count(*),limit,null,union,like, select * 2:join 代替子查询,子查询会创建临时表做耗时操作 3:不要在列上进行运算操作 4:union 会去重 自动加上distinct 创建临时表做耗时操作 2.索引优化 1 阅读全文
posted @ 2021-06-30 08:01 易阳羽之灵异 阅读(36) 评论(0) 推荐(0) 编辑