Mysql的强制索引(Force Index)都为我们做了哪些优化?
原本只是想验证一下选择不同索引对innodb count(*)查询速度的影响。各位顺道可参考下这篇文章 [InnoDB系列] -- innodb表如何更快得到count(*)结果。测试过程中没想到同样的一条sql语句仅仅是增加了force index后查询速度几乎快了一倍。select count(*) from http_log_3 force index(time) where t...