当前位置:网站首页>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
边栏推荐
- Since using low code development, the development efficiency has been increased by 10 times
- Download and configuration of nuitka packaging tutorial
- 3D object detection
- What did 3GPP ran do in the first F2F meeting?
- asp. Net using JSON to interact with API data
- In 2022, 20 cities with the largest number of college students in China
- System log
- 开源深度学习框架PlaidML安装及测试
- 选电子工程被劝退,真的没前景了?
- JDBC接口总结
猜你喜欢

基于微信电子书阅读小程序毕业设计毕设作品(1)开发概要

Torch network model is converted to onnx format and visualized

Demand and business model analysis-3-design

QT -- how to get the contents of selected cells in qtableview

负数取余问题

华尔街备忘单(Wall Street Cheat Sheet)

5g R17 standard is frozen. What does it say?

Hardware test - why not use grounding clip for ripple test

Experience Technology Department of ant group launched the 2023rd school recruitment

Negative remainder problem
随机推荐
JDBC interface summary
Deep feature synthesis and genetic feature generation, comparison of two automatic feature generation strategies
mysql的增删改查,mysql常用命令
easycode一键生成插件自定义模板
Jenkins中pipeline对接CMDB接口获取主机列表的发布实践原创
基於分布式數據庫本身的定時備份方法
JDBC接口总结
[digital ic/fpga] data accumulation output
Learning summary in March
PostgreSQL数据库复制——后台一等公民进程WalReceiver pg_stat_wal_receiver视图
负数取余问题
Implementation of exec function and shell
简单理解防抖函数
什么是数据驱动
Original introduction to Jenkins' configuration options
Wechat e-book reading applet graduation design completion works (3) background function
存储体系概述
Leetcode topic [string]-344- reverse string
Negative remainder problem
[generation confrontation network learning III] reading notes of Bigan paper and its principle understanding