当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
QPushButton 样式使用示例(以及按钮setmenu添加下拉菜单的方法)
物联网协议的王者:MQTT
Hello, is it safe to open an online stock account and buy stocks now?
14 MySQL tutorial insert insert data
Padding percentage operation
你好,现在网上股票开户买股票安全吗?
JS 常用正则表达式
二分查找法-1
数据加密标准DES安全性
LeetCode——226. Flip binary tree (BFS)
Runtimeerror: CUDA error: out of memory own solution (it is estimated that it is not applicable to most people in special circumstances)
小程序设置按钮分享功能
js强制转换
离婚协议中的几个重点
数据加密标准(DES)概念及工作原理
在国金证券开户怎么样?开户安全吗?
陈强:阿里千亿级大规模数字商业知识图谱助力业务增长
padding百分比操作
MySQL add column failed because there was data before, not null by default
RSA加密解密详解









