当前位置:网站首页>[notes] like the solution to the problem of slow query (index + explicitly specifying query fields)
[notes] like the solution to the problem of slow query (index + explicitly specifying query fields)
2022-06-13 08:21:00 【SDL Dahua】
Preface
I feel this knowledge point is very important during the test today , And the probability of using it is quite high .
Important note :
like The double hundredth fuzzy matching of can use the index , But only if the target field has an index , also select The field name must be explicitly specified later .
//like The problem of slow query is solved ( Index required + Specify query fields explicitly )
// When there's too much data ,like It's going to be inefficient , Because it is a full table scan , No index
// Solution
1、 Add an index to the field
2、 Specify query fields explicitly
MySQL edition
mysql8.0
legend ( Specify fields explicitly ):
legend ( No field specified ):
Be careful :select Field name must be specified later , Otherwise, the index cannot be used !
END
边栏推荐
- MySQL summary
- Gtk+ programming example on page 115 - simplest progress bar 2 with steps to write GTK program using anjuta
- Using KVM to create three virtual machines that can communicate with local area network
- Leetcode- sort arrays by parity
- 学习记录4: einops // cudnn.benchamark=true // hook
- 3. deploy the fabric2.2 cluster (use the official demo)
- HCIP_ MGRE comprehensive experiment
- Mongodb test case
- [complete information static game characteristics of Nash equilibrium]
- Determine whether a string is rotated from another string
猜你喜欢
Guidance process and service control
Win10系统如何修改桌面路径
HCIP_ OSPF irregular area
微服务系统架构搭建一:环境搭建
AcWing 1977. 信息中继(基环树,并查集)
Edge browser uses bdtab new tab plug-in (BD new tab)
MySQL installation and configuration under Windows
HCIP_ MGRE experiment
Redis subscribe connection timeout interrupt problem solution
MySQL queries difference sets (missing data) by linking tables based on an associated field
随机推荐
MySQL sorts according to the specified order of the specified fields
Motiko basic syntax in dfinity (ICP) -8
Overview of cross chain protocol IBC
生鲜配送分拣管理系统哪家比较强?
How to use annotations in word
5. fabric2.2 installation and submission contract (using official demo)
第115页的gtk+编程例子——最简单的进度条2附带使用Anjuta写gtk程序的步骤
ERP基础数据 金蝶
钉钉小程序如何隐藏tab
Deploy Yum warehouse and NFS shared services
Homestead environment setup
How does the BD new tab plug-in log in?
Basic operation of dfinity (ICP) development-4
Determination of ranking
Founder of Starbucks: no longer open "public toilets" to non store consumers for safety reasons
Leetcode- sort arrays by parity
【博弈论-完全信息静态博弈】 Nash均衡
Wechat upload picture material interface
About redis encapsulation tool class using distributed locks
es6删除对象的某个属性