当前位置:网站首页>Mysql database index (InnoDB engine)
Mysql database index (InnoDB engine)
2022-07-28 05:41:00 【Little madman green】
About b+ Please refer to the related concepts of tree by yourself , This article mainly distinguishes non unique indexes 、 unique index 、 Joint index ( Composite index )、 Differences between overlay indexes .
unique index On the leading node are the primary key and pointer , Leaf nodes store complete data .
Non unique index As a result b+ Trees , But leaf nodes do not store specific data , It stores the primary key value , You need to query back to the table in the primary key index .
Composite index Is to index multiple fields , Accordingly, it will also create b+ Trees , Leaf nodes store specific data . Composite index (A,B,C) Query criteria (A,B,C),(A),(A,B) Can use composite index , According to other examples (A,C) Some use indexes , It involves table query backfill , You can use explain To analyze .
Overlay index Not an index created , It's just the name of a phenomenon , If there is no back table query for other types of index queries , Call it Overlay index , Can pass explain Query view Extra Field is Using index, For example, the direct hit record of a single index is Overlay index . If the query in the composite index is basically equal to the query or other queries that can directly hit the record , It does not involve back table query , This is also the case Overlay index .
边栏推荐
- 冶金物理化学复习 --- 复杂反应的速率方程
- [MySQL] solve the problem of MySQL time zone and 8-hour difference in database time
- Redis 之布隆过滤器
- PyTorch 使用 MaxPool 实现图像的膨胀和腐蚀
- 冶金物理化学复习 --- 金属的电沉积,还原过程
- IO流的使用
- Deep learning medical image model reproduction
- 科研论文写作方法:在方法部分添加分析和讨论说明自己的贡献和不同
- How Visio accurately controls the size, position and angle of graphics
- 2021csdn blog star selection, mutual investment
猜你喜欢

RESNET structure comparison

蒸馏模型图

顺序表的增删查改

冶金物理化学复习 --- 金属的电沉积,还原过程

Writing methods of scientific research papers: add analysis and discussion in the method part to explain their contributions and differences

The difference between get and post

Mutual conversion between latex and word

VMware Workstation is incompatible with device/credential guard. Disable device/credential guard

visio如何精确控制图形的大小和位置及角度

Review of metallurgical physical chemistry ---- gas solid reaction kinetics
随机推荐
Invalid bound statement (not found): com.exam.mapper.UserMapper.findbyid
JVM note 4: Memory Model
Invalid bound statement (not found): com.exam.mapper.UserMapper.findbyid
【MySQL】MySQL时区问题、数据库时间相差8小时问题解决
Multi module packaging: package: XXX does not exist
openjudge:找出全部子串位置
Problems encountered when the registry service Eureka switches to nocas
多线程进阶:synchronized底层原理,锁优化、锁升级的过程
The Monte Carlo method solves the PI and draws points with turtle, and completes the progress bar problem
Openjudge: count the number of numeric characters
顺序表的增删查改
How Visio accurately controls the size, position and angle of graphics
How to compare long and integer and why to report errors
visio如何快速生成相同的图案,生成图像矩阵
冶金物理化学复习 --- 金属的电沉积,还原过程
mysql中使用list作为参数进行查询
Mutual conversion between latex and word
Export excel, generate multiple sheet pages, and name them
深度学习医学图像模型复现
Custom JSON return data