当前位置:网站首页>Btree index and Hash index
Btree index and Hash index
2022-08-10 23:12:00 【Small wood with】
Hash Index
The location where the data is stored is located by calculating the Hash value of the data, so when querying the data, you can directly locate the location of the data, without the need to search for the data again and again through the binary tree like the B-tree.Very efficient.But why are Hash indexes rarely used?
Disadvantages:
- Only specified data can be queried, and range query cannot be performed. Searches such as < >= in cannot be realized
- The data cannot be sorted because the size of the hash value of the data does not represent the size of the data itself
- Cannot avoid full table scan through index, because the range cannot be delineated, all can only scan all data
BTree Index
It is a very good index structure. It is realized through the structure of B+ tree. It builds an index tree by extracting index fields, so as to locate the cache page where the data is located when querying, so as to realize the range filtering operation of the data.
And the index can also be used when there is no wildcard "zhang%" on the left side of the like statement.It is very suitable for operations such as sorting and range querying of large amounts of data.
边栏推荐
- 常用代码扩展点设计方式
- This visual tool artifact is more intuitive and easy to use!love so much
- VulnHub之DC靶场下载与DC靶场全系列渗透实战详细过程
- CIKM2022 | Sequence Recommendation Based on Bidirectional Transformers Contrastive Learning
- KRONES克朗斯电源维修0-901-17-350-8技术概论
- 威纶通触摸屏如何在报警的同时,显示出异常数据的当前值?
- Qualcomm Platform Development Series Explanation (Application) Introduction to QCMAP Application Framework
- DC-9靶场下载及渗透实战详细过程(DC靶场系列)
- 华为HCIE云计算之Fusion Access桌面云
- 【秋招】【更新中ing】手撕代码系列
猜你喜欢
随机推荐
链表中的节点每k个一组翻转
二叉树 | 代码随想录学习笔记
ArcGIS中的坐标系统和投影变换
EL表达式
PyQt5 窗口自适应大小
HGAME 2022 Week1 writeup
DC-8靶场下载及渗透实战详细过程(DC靶场系列)
【秋招】【更新中ing】手撕代码系列
虎牙自动发弹幕换牌子
RecyclerView上下滑动时,不调用onBindViewHolder 导致列表的item不刷新
阿里云张新涛:支持沉浸式体验应用快速落地,阿里云云XR平台发布
确诊了!是Druid1.1.20的锅,查询无法映射LocalDateTime类型(带源码解析及解决方案)
MySQL performance schema性能分析实战
Glide缓存核心原理详解
面试官: AMS在Android起到什么作用,简单的分析下Android的源码
Merge k sorted linked lists
实例055:按位取反
过滤器
BM7 链表中环的入口结点
Detailed installation steps and environment configuration of geemap









