我使用的是mysql5.5的版本,有一张表没分区之前用最简单的SQL
select id,name from table where id=1;后通过show status like 'qcache%';可以看到已经被缓存里,第二遍执行的时候执行时间也是少于0.01秒,
但是把这个表按照id字段range方式分区后
无论执行多么简单的sql,查询结果都不再缓存,即使执行select sql_cache id,name from table where id=1;强制缓存qcache_insert和qcache_hits依然为0,且无论执行多少遍,执行时间都大于0.01秒之间,看这个执行时间应该是没有被缓存。想请问一下为什么会出现这种情况!