当前位置:网站首页>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
边栏推荐
- 1. Color inversion, logarithmic transformation, gamma transformation source code - miniopencv from zero
- 【云原生】手把手教你搭建ferry开源工单系统
- Remote storage access authorization
- 从 CSV 文件迁移数据到 TiDB
- 【MySQL】鎖
- Introduction to backup and recovery Cr
- [untitled]
- Hungry for 4 years + Ali for 2 years: some conclusions and Thoughts on the road of research and development
- Learn Arduino with examples
- Pointer advanced --- pointer array, array pointer
猜你喜欢

Go learning notes (3) basic types and statements (2)

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

面向个性化需求的在线云数据库混合调优系统 | SIGMOD 2022入选论文解读

leetcode刷题 (5.28) 哈希表

2022 Inner Mongolia latest construction tower crane (construction special operation) simulation examination question bank and answers

ESP series pin description diagram summary

Golang DNS write casually

Configuring OSPF load sharing for Huawei devices

Chinese Remainder Theorem (Sun Tzu theorem) principle and template code

Golang DNS 随便写写
随机推荐
ESP系列引脚說明圖匯總
使用 BR 备份 TiDB 集群数据到兼容 S3 的存储
CAD ARX gets the current viewport settings
根据csv文件某一列字符串中某个数字排序
Circular reference of ES6 module
IOT -- interpreting the four tier architecture of the Internet of things
"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
Go learning notes (3) basic types and statements (2)
[cloud native] teach you how to build ferry open source work order system
[MySQL] log
[2022 广东省赛M] 拉格朗日插值 (多元函数极值 分治NTT)
2022.02.13 - NC001. Reverse linked list
Let the bullets fly for a while
Leetcode skimming (5.29) hash table
使用 Dumpling 备份 TiDB 集群数据到兼容 S3 的存储
图像融合--挑战、机遇与对策
Introduction to backup and recovery Cr
LDAP Application Section (4) Jenkins Access
指针进阶---指针数组,数组指针
2022.02.13 - NC004. Print number of loops