当前位置:网站首页>Why can't fields with high duplicate values be indexed (such as gender fields)
Why can't fields with high duplicate values be indexed (such as gender fields)
2022-06-12 19:49:00 【WD Technology】
Conclusion ( With innodb For example )
a、 Non clustered indexes store references to primary keys , If select Field is not in a non clustered index , You need to jump to the primary key index ( In the above figure, jump from the index tree on the right to the index tree on the left ), Get more select field value
b、 If the non clustered index value has a high repetition rate , Then, when querying, there will be a large number of jumps from the right to the left in the above figure , The whole process is very slow
c、 If where Fields with high value repetition rate ,select It was used limit, Check only a few data , That is, when the number of jumps is very small , You can still build an index ( Later on, there was no need ,limit Limited quantity , Full table scanning is also fast , Unless the field values are sorted , All previous values must be scanned )
d、 without 3 This premise , It is not recommended to build an index on a field with a high value repetition rate , Because the query efficiency is low , You also need to maintain the index
边栏推荐
- easycode一键生成插件自定义模板
- Demand and business model analysis-1-business model canvas
- Unsupported class file major version 60
- 华尔街备忘单(Wall Street Cheat Sheet)
- 运算器的基本结构
- torch 网络模型转换onnx格式,并可视化
- [games101] class note 8 - shading (shading frequency, graphics pipeline, texture mapping)
- Jenkins中pipeline对接CMDB接口获取主机列表的发布实践原创
- User and group permissions
- Basic structure of arithmetic unit
猜你喜欢

Reading small programs based on wechat e-book graduation design works (7) Interim inspection report

负数取余问题

运算器的基本结构

Process creation fork (), demise wait()

Demand and business model innovation - demand 1 - Introduction to demand engineering

How does Eldon's ring of the law get lune quickly? Introduction to the fastest and safest method for obtaining lune

Wechat e-book reading applet graduation design work (6) opening defense ppt

Wechat e-book reading applet graduation design works (1) development outline

用户权限和组权限

User and group permissions
随机推荐
基于微信电子书阅读小程序毕业设计毕设作品(4)开题报告
Viewpoint sharing | Li Wei, an expert of Gewu titanium intelligent technology products: underlying logic and scenario practice of unstructured data platform
How mysterious is "PIP not an internal or external command, nor a runnable program or batch file"
User and group permissions
Typescript decorator is basically used
PostgreSQL数据库复制——后台一等公民进程WalReceiver pg_stat_wal_receiver视图
Macro definitions and functions
用户权限和组权限
Equipment management - borrowing and returning module 1
mysql的增删改查,mysql常用命令
Pyinstaller packaging tutorial packaging resource files
存储体系概述
今晚7:00 | PhD Debate 自监督学习在推荐系统中的应用
[notes for question brushing] line segment tree
基于微信电子书阅读小程序毕业设计毕设作品(7)中期检查报告
New product launch
2022年,中国大学生最多的20个城市
新来的同事问我 where 1=1 是什么意思???
Negative remainder problem
测试必备:推荐一款跨平台App性能专项测试工具!