tableA.columnB上建索引
执行查询 select a ABCD from tableA OPQ where columnB='sfljsdlf'
顶级活动 > 搜索SQL
文本LIKE select a ABCD from tableA OPQ
搜索
点击计划 查看表
看每一步的操作
有的公司自行开发的框架中,对日期的处理方式有问题,传入的与日期列比较的值会导致日期列每个值都转成时间戳再与传入的值比较,从而无法走索引(偶现在滴公司的框架就有这个问题,经俺排查出来这个问题后已修改,修改框架前偶让开发的兄弟使用了cast(:dupdate as date)这种方式作为临时解决的方法)
index range scan,index fast full scan,index skip scan发生的条件
[url]http://blog.csdn.net/robinson1988/article/details/4980611[/url]
index unique scan 与index range scan等的区别
[url]http://blog.csdn.net/doupeihua/article/details/6822591[/url]
执行查询 select a ABCD from tableA OPQ where columnB='sfljsdlf'
顶级活动 > 搜索SQL
文本LIKE select a ABCD from tableA OPQ
搜索
点击计划 查看表
看每一步的操作
有的公司自行开发的框架中,对日期的处理方式有问题,传入的与日期列比较的值会导致日期列每个值都转成时间戳再与传入的值比较,从而无法走索引(偶现在滴公司的框架就有这个问题,经俺排查出来这个问题后已修改,修改框架前偶让开发的兄弟使用了cast(:dupdate as date)这种方式作为临时解决的方法)
index range scan,index fast full scan,index skip scan发生的条件
[url]http://blog.csdn.net/robinson1988/article/details/4980611[/url]
index unique scan 与index range scan等的区别
[url]http://blog.csdn.net/doupeihua/article/details/6822591[/url]