输入banner图图片脚本导航/分类

MYSQL:基础——索引原理

  根据最左匹配原则,最开始的sql语句的索引应该是status、operator_id、type、operate_time的联合索引;其中status、operator_id、type的顺序可以颠倒。

  但是这只是一种语句,我们其实需要把这个表所有查询都找到,进行综合定夺。

 

参考资料

  • https://tech.meituan.com/2014/06/30/mysql-index.html
  • https://www.jianshu.com/p/1f2560f0e87f 
  • https://blog.csdn.net/tongdanping/article/details/79878302
  • https://mp.weixin.qq.com/s/jRZMMONW3QP43dsDKIV9VQ

MYSQL:基础——索引原理

标签:tps   code   operator   扩展   href   出现   磁盘   style   查询优化