【发布时间】:2011-08-23 01:26:01
【问题描述】:
我开启了 query_cache,并为其分配了内存:
| query_cache_limit | 1048576 |
| query_cache_min_res_unit | 4096 |
| query_cache_size | 16777216 |
| query_cache_type | ON |
| query_cache_wlock_invalidate | OFF |
但是查询没有被缓存:
| Qcache_free_blocks | 1 |
| Qcache_free_memory | 16768400 |
| Qcache_hits | 0 |
| Qcache_inserts | 0 |
| Qcache_lowmem_prunes | 0 |
| Qcache_not_cached | 163 |
| Qcache_queries_in_cache | 0 |
| Qcache_total_blocks | 1 |
我使用 Innodb 作为存储引擎,没有事务。未缓存的示例查询:
select * from `feed-ts`.feeds where id < 10;
它只返回一行。
有什么想法吗?
【问题讨论】:
标签: mysql