当前位置:网站首页>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
边栏推荐
- Step by step guide to setting NFT as an ens profile Avatar
- Remote storage access authorization
- Char to leading 0
- Wincc7.5 download and installation tutorial (win10 system)
- Huawei cloud OBS file upload and download tool class
- Artcube information of "designer universe": Guangzhou implements the community designer system to achieve "great improvement" of urban quality | national economic and Information Center
- The resources of underground pipe holes are tight, and the air blowing micro cable is not fragrant?
- 好用的TCP-UDP_debug工具下载和使用
- "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 record | 203_ Remove linked list elements
猜你喜欢
Synchronized solves problems caused by sharing
[research materials] 2021 Research Report on China's smart medical industry - Download attached
2022.02.13 - NC004. Print number of loops
C语言自定义类型:结构体
你想知道的ArrayList知识都在这
[MySQL] lock
2022 Inner Mongolia latest construction tower crane (construction special operation) simulation examination question bank and answers
2022.02.13 - NC003. Design LRU cache structure
Online yaml to CSV tool
【刷题】牛客网面试必刷TOP101
随机推荐
The resources of underground pipe holes are tight, and the air blowing micro cable is not fragrant?
3. File operation 3-with
Summary of MySQL index failure scenarios
Vocabulary notes for postgraduate entrance examination (3)
Migrate data from a tidb cluster to another tidb cluster
【MySQL】鎖
C language - bit segment
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
logback1.3. X configuration details and Practice
[MySQL] database stored procedure and storage function clearance tutorial (full version)
2022.02.13 - NC003. Design LRU cache structure
让学指针变得更简单(三)
1202 character lookup
Colorlog结合logging打印有颜色的日志
好用的TCP-UDP_debug工具下载和使用
从 SQL 文件迁移数据到 TiDB
Use br to back up tidb cluster data to S3 compatible storage
【MySQL】日志
使用 BR 备份 TiDB 集群数据到兼容 S3 的存储
LDAP應用篇(4)Jenkins接入