当前位置:网站首页>The explain statement in MySQL queries whether SQL is indexed, and several types in extra collate and summarize
The explain statement in MySQL queries whether SQL is indexed, and several types in extra collate and summarize
2022-06-29 20:14:00 【Game programming】
1.using index Find through the secondary common index , Implement overlay index , There is no need to query the table
2.using index condition Find through the secondary common index , After the results found through the index, there are where filter , And this filtering can be realized only by using the secondary ordinary index , No judgment filtering in memory . But you need to query the required field values back to the table .
3.using where Whether or not it is found through the index , As long as the data is loaded into memory where Condition screening , All are
4.using index & using where: Search uses index , But all the data needed can be found in the index column , So you don't need to go back to the table to query the data
Practical example
If there is a watch xxx, to modify_date Index
1.using index Find through the secondary common index , Implement overlay index , There is no need to query the table
explainSELECT modify_date from xxx
2.using index condition Find through the secondary common index , We need to go back to the table
explainSELECT * from xxx where modify_date > "2022-06-27 10:27:07" and modify_date < "2022-06-28 0:0:0"
3.using where Search without index
explainSELECT * from xxx where create_date > "2022-06-27 10:27:07" and create_date < "2022-06-28 0:0:0"
4.using index & using where: Search uses index , But all the data needed can be found in the index column , So you don't need to go back to the table to query the data
explainSELECT modify_date from xxx where modify_date > "2022-06-27 10:27:07" and modify_date < "2022-06-28 0:0:0"Return results

author :Koikoi123
Game programming , A game development favorite ~
If the picture is not displayed for a long time , Please use Chrome Kernel browser .
边栏推荐
- PHP implementation extracts non repeated integers (programming topics can be the fastest familiar functions)
- Zotero期刊自动匹配更新影响因子
- Snowflake ID, distributed unique ID
- 2021 CCPC 哈尔滨 E. Power and Modulo (思维题)
- 第二章(物理层)
- Koa 源码剖析
- 0/1 score planning topic
- [fishing artifact] code tool for lowering the seconds of UI Library -- form part (I) design
- A keepalived high availability accident made me learn it again!
- Flume配置4——自定義Source+Sink
猜你喜欢

4-1 port scanning technology

How to solve the problem of insufficient memory space in Apple iPhone upgrade system?

Flume configuration 2 - ganglia for monitoring

Flume配置4——自定義Source+Sink

Configuration du Flume 4 - source personnalisée + sink

0/1 score planning topic
![[notes] take notes again -- learn by doing Verilog HDL – 008](/img/7f/0ca73446247455ac4d8f9667083a87.png)
[notes] take notes again -- learn by doing Verilog HDL – 008

fastadmin后台设置单选按钮

La collection numérique Meng xiangshun, artiste national du tigre peint, est disponible en quantité limitée et est offerte avec Maotai de l'année du tigre

Bigder:自动化测试工程师
随机推荐
File contains vulnerability
Union find
Snowflake ID, distributed unique ID
剑指 Offer 41. 数据流中的中位数
Jmeter之BeanShell详解和夸线程调用
La collection numérique Meng xiangshun, artiste national du tigre peint, est disponible en quantité limitée et est offerte avec Maotai de l'année du tigre
Nutch2.1 distributed fetching
Jupyter服务安装及启动
偶然发现了另一种跨域方式,不知道有没有人这么玩过
软件工程—原理、方法与应用
剑指 Offer 66. 构建乘积数组
雪花id,分布式唯一id
深入Go底层原理,重写Redis中间件实战无密
data link layer
Flume配置4——自定義Source+Sink
Linux Installation mysql8
Detailed description of gaussdb (DWS) complex and diverse resource load management methods
Flume配置4——自定义Source+Sink
How to solve the problem of insufficient memory space in Apple iPhone upgrade system?
Startservice() procedure