我已经打开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;
它只返回一行。
有任何想法吗?
There's MySQL 中的一个错误.
查询缓存根本不用于对具有连字符名称的数据库中的 InnoDB 表进行查询(例如feed-ts
).
"Renaming“您的数据库似乎是目前唯一的解决方案。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)