当前位置:网站首页>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
边栏推荐
- 【MySQL】鎖
- Hungry for 4 years + Ali for 2 years: some conclusions and Thoughts on the road of research and development
- Huawei cloud OBS file upload and download tool class
- IOT -- interpreting the four tier architecture of the Internet of things
- IP lab, the first weekly recheck
- synchronized 解决共享带来的问题
- Nft智能合约发行,盲盒,公开发售技术实战--合约篇
- CAD ARX 获取当前的视口设置
- vulnhub hackme: 1
- The resources of underground pipe holes are tight, and the air blowing micro cable is not fragrant?
猜你喜欢
Verrouillage [MySQL]
On the day of resignation, jd.com deleted the database and ran away, and the programmer was sentenced
[cloud native topic -45]:kubesphere cloud Governance - Introduction and overall architecture of enterprise container platform based on kubernetes
Wincc7.5 download and installation tutorial (win10 system)
Ruffian Heng embedded bimonthly, issue 49
C language - bit segment
2. File operation - write
"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
Leetcode question brushing (5.28) hash table
Convolution, pooling, activation function, initialization, normalization, regularization, learning rate - Summary of deep learning foundation
随机推荐
在 uniapp 中使用阿里图标
Asia Pacific Financial Media | female pattern ladyvision: forced the hotel to upgrade security. The drunk woman died in the guest room, and the hotel was sentenced not to pay compensation | APEC secur
Zhong Xuegao, who cannot be melted, cannot escape the life cycle of online celebrity products
Colorlog结合logging打印有颜色的日志
sys.argv
Char to leading 0
从表中名称映射关系修改视频名称
[2022 Guangdong saim] Lagrange interpolation (multivariate function extreme value divide and conquer NTT)
Wireshark grabs packets to understand its word TCP segment
Online yaml to CSV tool
TiDB备份与恢复简介
Image fusion -- challenges, opportunities and Countermeasures
[research materials] 2021 Research Report on China's smart medical industry - Download attached
leetcode刷题 (5.31) 字符串
matplotlib. Widgets are easy to use
All the ArrayList knowledge you want to know is here
On the day of resignation, jd.com deleted the database and ran away, and the programmer was sentenced
[MySQL] log
Permutation and combination function
Upgrade tidb operator