mysql - 为什么即使启用了 MySQL 查询缓存也没有使用?
问题描述
mysql> SHOW VARIABLES LIKE 'have_query_cache';
+------------------+-------+
| Variable_name | Value |
+------------------+-------+
| have_query_cache | YES |
+------------------+-------+
1 row in set (0.00 sec)
mysql> SHOW STATUS LIKE 'Qcache%';
+-------------------------+------------+
| Variable_name | Value |
+-------------------------+------------+
| Qcache_free_blocks | 1 |
| Qcache_free_memory | 1031832 |
| Qcache_hits | 0 |
| Qcache_inserts | 0 |
| Qcache_lowmem_prunes | 0 |
| Qcache_not_cached | 3097998155 |
| Qcache_queries_in_cache | 0 |
| Qcache_total_blocks | 1 |
+-------------------------+------------+
8 rows in set (0.00 sec)
缓存没有被使用有什么原因吗?
解决方案
推荐阅读
- android - 任务 ':app:compileDebugJavaWithJavac' 执行失败。> java.time.DateTimeException:MonthOfYear 的值无效(有效值 1 - 12)
- javascript - 为社交预览卡动态提供元数据
- c - 从数字中获取特定数字时的值不正确
- php - 如果购物车数量不能被某个数字整除,则禁用 WooCommerce Checkout
- javascript - 如何在 Next.js 中使用 Context Api
- python - 如何解析似乎混合使用 Unicode 代码点和十六进制值作为字符串的二进制文件?
- javascript - 将对象值传递到事件侦听器范围之外
- reactjs - 根据其他输入 onChange 更改输入值
- discord.js - 如何给所有成员一个角色,有时间间隔
- python - 如何通过列值的条件删除 DataFrame 中的行