摘要: 1 避免全表扫描 对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。商业化开发中,强制要求,不能全表扫描。尽量将查询type提升到ref级别之上,必须是index级别之上。 const > eq_ref > ref > range > index 阅读全文
posted @ 2020-01-05 14:37 小猫钓鱼吃鱼 阅读(177) 评论(0) 推荐(0) 编辑