当前位置:Gxlcms > 数据库问题 > MYSQL:基础——索引原理

MYSQL:基础——索引原理

时间:2021-07-01 10:21:17 帮助过:3人阅读

  根据最左匹配原则,最开始的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   查询优化   

人气教程排行