Files
Hui-s-notebook/logseq-java/pages/MySQL查询缓存.md
2024-02-02 00:12:49 +08:00

14 lines
558 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
- MySQL支持缓存查询吗
- 5.7支持内部缓存8.0之后就废弃了
- 通过哈希值计算,命中缓冲区就会返回缓冲区结果
- 为何废弃
- 缓存限制
- mysql没有灵活管理缓存失效和生效尤其对于频繁更新的表
- SQL必须完全一致才会命中
- 为了节省内存太大的result不会缓存
- 在分库分表情况下不起作用
- 执行SQL里有触发器自定义函数时缓存不起作用
- 表结构或数据改变时,基于该表的缓存立即失效
- 替代方案
- redis
- ehcached