当前位置:网站首页>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 .
边栏推荐
- How Visio can quickly generate the same pattern and image matrix
- 顺序表的增删查改
- Idea uses dev tool to realize hot deployment
- Export excel, generate multiple sheet pages, and name them
- IDEA使用dev-tool实现热部署
- Mutual conversion between latex and word
- 多线程进阶:锁的策略
- 数据库面试
- ByteBuffer. Position throws exception illegalargumentexception
- JVM篇 笔记4:内存模型
猜你喜欢

mysql 为查询结果增加序号

Review of metallurgical physical chemistry ---- gas solid reaction kinetics

IDEA使用dev-tool实现热部署

Multi module packaging: package: XXX does not exist

冶金物理化学复习 --- 化学反应动力学基础

冶金物理化学复习 --- 复杂反应的速率方程

Fusiongan code learning (I)

Review of metallurgical physical chemistry --- liquid liquid reaction kinetics

冶金物理化学复习 --- 气-液相反应动力学

Invalid bound statement (not found): com.exam.mapper.UserMapper.findbyid
随机推荐
蒸馏模型图
openjudge:大小写字母互换
Arrangement of main drawings of the latest 54 papers of eccv22
How to compare long and integer and why to report errors
顺序表oj之合并两个有序数组
正则表达式
2021CSDN博客之星评选,互投
pytorch 计算模型的GFlops和total params的方法
日期类及其基本功能的实现
Fusiongan code learning (I)
The difference between get and post
CentOS7安装MySQL5.7
Multi module packaging: package: XXX does not exist
visio如何快速生成相同的图案,生成图像矩阵
Openjudge: count the number of numeric characters
openjudge:找第一个只出现一次的字符
Openjudge: maximum span of string
mysql中使用list作为参数进行查询
Problems encountered when the registry service Eureka switches to nocas
冶金物理化学复习 -- 金属电沉积过程中的阴极极化,超电势以及阳极和阳极过程