当前位置:网站首页>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
边栏推荐
- 2022.02.13 - NC004. Print number of loops
- C语言 - 位段
- Online yaml to CSV tool
- Asia Pacific Financial Media | "APEC industry +" Western Silicon Valley invests 2trillion yuan in Chengdu Chongqing economic circle to catch up with Shanghai | stable strategy industry fund observatio
- Restore backup data on S3 compatible storage with br
- 1204 character deletion operation (2)
- synchronized 解决共享带来的问题
- From monomer structure to microservice architecture, introduction to microservices
- leetcode刷题 (5.31) 字符串
- 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
猜你喜欢
![[cloud native] teach you how to build ferry open source work order system](/img/fb/507f763791235bd00bc8201e5d7741.png)
[cloud native] teach you how to build ferry open source work order system

leetcode刷题 (5.28) 哈希表

Résumé des diagrammes de description des broches de la série ESP

Pyqt5 development tips - obtain Manhattan distance between coordinates

C语言自定义类型:结构体

Personalized online cloud database hybrid optimization system | SIGMOD 2022 selected papers interpretation

Hcip day 16

IOT -- interpreting the four tier architecture of the Internet of things

根据csv文件某一列字符串中某个数字排序

IoT -- 解读物联网四层架构
随机推荐
从 TiDB 集群迁移数据至另一 TiDB 集群
使用 Dumpling 备份 TiDB 集群数据到兼容 S3 的存储
[research materials] 2021 live broadcast annual data report of e-commerce - Download attached
Migrate data from SQL files to tidb
Restore backup data on S3 compatible storage with tidb lightning
[MySQL] log
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
National economic information center "APEC industry +": economic data released at the night of the Spring Festival | observation of stable strategy industry fund
[MySQL] database stored procedure and storage function clearance tutorial (full version)
图像融合--挑战、机遇与对策
sys.argv
化不掉的钟薛高,逃不出网红产品的生命周期
Restore backup data on S3 compatible storage with br
How to use information mechanism to realize process mutual exclusion, process synchronization and precursor relationship
Beijing invitation media
What is the use of entering the critical point? How to realize STM32 single chip microcomputer?
【刷题】牛客网面试必刷TOP101
hcip--mpls
Let the bullets fly for a while
CAD ARX 获取当前的视口设置