当前位置:网站首页>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
边栏推荐
- 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
- [MySQL] database stored procedure and storage function clearance tutorial (full version)
- 【MySQL】锁
- The Vice Minister of the Ministry of industry and information technology of "APEC industry +" of the national economic and information technology center led a team to Sichuan to investigate the operat
- Leetcode question brushing (5.28) hash table
- IOT -- interpreting the four tier architecture of the Internet of things
- Wincc7.5 download and installation tutorial (win10 system)
- [cloud native] teach you how to build ferry open source work order system
- 在 uniapp 中使用阿里图标
- Analysis of pointer and array written test questions
猜你喜欢

Asia Pacific Financial Media | art cube of "designer universe": Guangzhou community designers achieve "great improvement" in urban quality | observation of stable strategy industry fund

Zhong Xuegao, who cannot be melted, cannot escape the life cycle of online celebrity products

2. File operation - write

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

在 uniapp 中使用阿里图标

你想知道的ArrayList知识都在这

The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower

Beijing invitation media

Use Alibaba icon in uniapp

Nacos Development Manual
随机推荐
Ruffian Heng embedded bimonthly, issue 49
JS select all and tab bar switching, simple comments
IoT -- 解读物联网四层架构
wincc7.5下载安装教程(Win10系统)
Permutation and combination function
Image fusion -- challenges, opportunities and Countermeasures
It's hard to find a job when the industry is in recession
使用 TiDB Lightning 恢复 S3 兼容存储上的备份数据
Analysis of Top1 accuracy and top5 accuracy examples
[cloud native topic -45]:kubesphere cloud Governance - Introduction and overall architecture of enterprise container platform based on kubernetes
从 CSV 文件迁移数据到 TiDB
Artcube information of "designer universe": Guangzhou implements the community designer system to achieve "great improvement" of urban quality | national economic and Information Center
2022.02.13 - NC001. Reverse linked list
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
[research materials] 2021 Research Report on China's smart medical industry - Download attached
Summary of MySQL index failure scenarios
Fibonacci sequence
[secretly kill little partner pytorch20 days -day01- example of structured data modeling process]
ESP系列引脚说明图汇总
Tidb backup and recovery introduction