Mysql 查询缓存不工作
我已打开查询缓存,并为其分配了内存:Mysql 查询缓存不工作,mysql,Mysql,我已打开查询缓存,并为其分配了内存: | query_cache_limit | 1048576 | | query_cache_min_res_unit | 4096 | | query_cache_size | 16777216 | | query_cache_type | ON | | query_cache_wlock_invalidate | OFF |
| 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 |
select * from `feed-ts`.feeds where id < 10;
我使用Innodb作为存储引擎,没有事务。未缓存的示例查询:
| 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 |
select * from `feed-ts`.feeds where id < 10;
它只返回一行
有什么想法吗?没有
查询缓存根本不用于对数据库中具有连字符名称(如feed-ts)的InnoDB表进行查询
您的数据库似乎是目前唯一的解决方案。哦,真是一团糟:-S谢谢您该漏洞显然已于修复。