当前位置:网站首页>MySQL index --01--- design principle of index
MySQL index --01--- design principle of index
2022-07-01 02:55:00 【High high for loop】
Tips : When the article is finished , Directories can be generated automatically , How to generate it, please refer to the help document on the right
List of articles
- MySQL8.0 Index new features
- Which situations are suitable for creating indexes
- 1. There is a limit to the uniqueness of field values
- 2. Frequent act WHERE The field of the query condition
- 3. often GROUP BY and ORDER BY The column of
- 4. UPDATE、DELETE Of WHERE Conditional column
- 5. DISTINCT Fields need to be indexed
- 6. Multiple tables JOIN Connection operation , Precautions for index creation
- 7. Use the type of column to create a small index
- 8. Create an index using a string prefix
- 9. High discrimination ( High hashability ) The column of is suitable as an index
- 10. The most frequently used columns are placed on the left side of the federated index
- When multiple fields need to be indexed , Joint index is better than single value index
- Limit the number of indexes
- Which situations are not suitable for index creation
- 1. stay where Fields not used in , Don't set the index
- 2. It is better not to use index for tables with small data volume
- 3. Don't build indexes on columns with a lot of duplicate data
- 4. Avoid creating too many indexes on frequently updated tables
- 5. Unordered values are not recommended as indexes
- 6. Delete indexes that are no longer or rarely used
- 7. Do not define redundant or duplicate indexes
MySQL8.0 Index new features
2.1 Support descending index



2.2 Hide index


Which situations are suitable for creating indexes
1. There is a limit to the uniqueness of field values

2. Frequent act WHERE The field of the query condition

3. often GROUP BY and ORDER BY The column of

4. UPDATE、DELETE Of WHERE Conditional column


5. DISTINCT Fields need to be indexed

6. Multiple tables JOIN Connection operation , Precautions for index creation

7. Use the type of column to create a small index

8. Create an index using a string prefix



9. High discrimination ( High hashability ) The column of is suitable as an index

10. The most frequently used columns are placed on the left side of the federated index

When multiple fields need to be indexed , Joint index is better than single value index
Limit the number of indexes
Which situations are not suitable for index creation
1. stay where Fields not used in , Don't set the index

2. It is better not to use index for tables with small data volume


3. Don't build indexes on columns with a lot of duplicate data


4. Avoid creating too many indexes on frequently updated tables

5. Unordered values are not recommended as indexes

6. Delete indexes that are no longer or rarely used

7. Do not define redundant or duplicate indexes


边栏推荐
- Optimal Transport系列1
- Pychar open remote directory remote host
- ipmitool下载地址和编译安装时可能出现的问题
- IEDA 右键源码文件菜单简介
- [small program project development -- Jingdong Mall] the home page commodity floor of uni app
- Map array function
- 鼠标悬停效果四
- xxl-job使用指南
- Contrastive learning of Class-agnostic Activation Map for Weakly Supervised Object Localization and
- Huawei operator level router configuration example | BGP VPLS and LDP VPLS interworking example
猜你喜欢

Huawei operator level router configuration example | configuration static VPLS example

最新接口自动化面试题

Huawei operator level router configuration example | BGP VPLS configuration example

Xception学习笔记

旷世轻量化网络ShuffulNetV2学习笔记

Mnasnet learning notes

php批量excel转word

Sampling Area Lights

Nacos configuration center tutorial

Pychart software deployment gray unable to point
随机推荐
联想X86服务器重启管理控制器(XClarity Controller)或TSM的方法
如果我在北京,到哪里开户比较好?另外,手机开户安全么?
Optimal transport Series 1
js 找出两个数组中的重复元素
Why are strings immutable in many programming languages? [repeated] - why are strings immutable in many programming languages? [duplicate]
RestCloud ETL WebService数据同步到本地
【PR #5 A】双向奔赴(状压DP)
股票开账户如何优惠开户?还有,在线开户安全么?
Poj-3486-computers[dynamic planning]
MCU firmware packaging Script Software
Pulsar geo replication/ disaster recovery / regional replication
大橙子疯博客搬家通知
Multithreaded printing
Mouse over effect 8
Share Creators萌芽人才培养计划来了!
Const and the secret of pointers
Sampling Area Lights
鼠标悬停效果五
Huawei operator level router configuration example | BGP VPLS and LDP VPLS interworking example
Sampling Area Lights

