当前位置:网站首页>Temporarily turn off MySQL cache
Temporarily turn off MySQL cache
2022-06-26 18:04:00 【Time is light, you are safe】
We often optimize SQL Have you ever encountered this kind of situation ??
There is a query that takes a long time SQL, First query , The time spent is normal , Query again , It takes a lot less time ,, What's going on here ??
This is because MySQL There is a cache , Once executed, there is a cache , So the time to query again becomes very short , We can temporarily turn off the cache to verify SQL Whether the optimization is successful .
set global query_cache_size=0;
set global query_cache_type=0;
The cache will be restarted after restart
边栏推荐
- 国信证券怎么开户?通过链接办理股票开户安全吗
- How does Guosen Securities open an account? Is it safe to open a stock account through the link
- [code Capriccio - dynamic planning] t583. Deleting two strings
- ZCMU--1367: Data Structure
- How sparksql returns a specific day of the week by date -dayofweek function
- Comp281 explanation
- 深层次安全定义剖析及加密技术
- Uncover the secret of Agora lipsync Technology: driving portraits to simulate human speech through real-time voice
- Digital signature standard (DSS)
- [unity] use C in unity to execute external files, such as Exe or bat
猜你喜欢

Connected to surface test questions

MySql 导出数据库中的全部表索引

Let torch cuda. is_ Experience of available() changing from false to true

Bayesian network explanation

解决pycharm里面每个字母占一格空格的问题

清华&商汤&上海AI&CUHK提出Siamese Image Modeling,兼具linear probing和密集预测性能!

14《MySQL 教程》INSERT 插入数据

一起备战蓝桥杯与CCF-CSP之大模拟炉石传说

Plt How to keep show() not closed

Detailed explanation of asymmetric cryptosystem
随机推荐
小程序设置按钮分享功能
[buuctf.reverse] 126-130
【Unity】在Unity中使用C#执行外部文件,如.exe或者.bat
股票开账户如何优惠开户?现在在线开户安全么?
Plt How to keep show() not closed
JS common regular expressions
Please advise tonghuashun which securities firm to choose for opening an account? Is it safe to open an account online now?
The king of Internet of things protocol: mqtt
JNI的 静态注册与动态注册
判断某个序列是否为栈的弹出序列
in和exsits、count(*)查询优化
Analysis of deep security definition and encryption technology
Comp281 explanation
VSCode使用 - Remote-SSH 配置说明
padding百分比操作
A little experience of next (ITER (dataloader))
新手炒股开户选哪个证券公司比较好?怎样炒股比较安全??
14《MySQL 教程》INSERT 插入数据
The difference between round and truncate in SQL (round or truncate)
二分查找-2