当前位置:网站首页>MySQL learning record 07 index (simple understanding)
MySQL learning record 07 index (simple understanding)
2022-07-06 08:26:00 【Jatine】
List of articles
MySQL Learning record 07 Indexes ( Simple understanding )
MySQL The official definition of index is : Indexes (Index) Help MySQL Data structure for efficient data acquisition .
Extract the sentence trunk , We can get the essence of index : An index is a data structure .《 Article, understand MySQL Indexes ( clear )》
7.1 Classification of indexes
- General index (KEY/INDEX)
default - unique index (UNIQUE KEY)
Avoid duplicate columns , The unique index can be repeated , Multiple columns can be identified as unique indexes - primary key (PRIMARY KEY)
Unique identification , The primary key cannot be repeated , There can only be one column as the primary key - Full-text index (FullText)
Only under the specific database engine
Quickly locate data
7.2 Indexing principles
- More indexes is not better
- Don't index frequently changing data
- A table with a small amount of data does not need to be indexed
- The index is usually added to the fields commonly used for query
边栏推荐
- Tidb backup and recovery introduction
- Zhong Xuegao, who cannot be melted, cannot escape the life cycle of online celebrity products
- C语言 - 位段
- Chinese Remainder Theorem (Sun Tzu theorem) principle and template code
- Migrate data from a tidb cluster to another tidb cluster
- Analysis of Top1 accuracy and top5 accuracy examples
- Pyqt5 development tips - obtain Manhattan distance between coordinates
- Make learning pointer easier (3)
- JS select all and tab bar switching, simple comments
- LDAP应用篇(4)Jenkins接入
猜你喜欢

Deep learning: derivation of shallow neural networks and deep neural networks

IoT -- 解读物联网四层架构

The State Economic Information Center "APEC industry +" Western Silicon Valley will invest 2trillion yuan in Chengdu Chongqing economic circle, which will surpass the observation of Shanghai | stable

Easy to use tcp-udp_ Debug tool download and use

Fibonacci sequence

化不掉的钟薛高,逃不出网红产品的生命周期

Leetcode question brushing record | 203_ Remove linked list elements

NFT smart contract release, blind box, public offering technology practice -- contract

wincc7.5下载安装教程(Win10系统)

Hcip day 16
随机推荐
hcip--mpls
"Designer universe" Guangdong responds to the opinions of the national development and Reform Commission. Primary school students incarnate as small community designers | national economic and Informa
Erc20 token agreement
【MySQL】日志
在 uniapp 中使用阿里图标
VMware 虚拟化集群
使用 TiDB Lightning 恢复 S3 兼容存储上的备份数据
LDAP應用篇(4)Jenkins接入
Personalized online cloud database hybrid optimization system | SIGMOD 2022 selected papers interpretation
指针和数组笔试题解析
VMware virtualization cluster
[MySQL] log
"Friendship and righteousness" of the center for national economy and information technology: China's friendship wine - the "unparalleled loyalty and righteousness" of the solidarity group released th
Yyds dry goods inventory three JS source code interpretation eventdispatcher
Step by step guide to setting NFT as an ens profile Avatar
C language custom type: struct
Golang force buckle leetcode 1020 Number of enclaves
将 NFT 设置为 ENS 个人资料头像的分步指南
ESP系列引脚说明图汇总
使用 BR 恢复 S3 兼容存储上的备份数据