当前位置:网站首页>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.
边栏推荐
- 二叉树 | 翻转二叉树 | leecode刷题笔记
- MySQL: MySQL Cluster - Principle and Configuration of Master-Slave Replication
- 蓝帽杯 2022 web/misc writeup
- make & cmake
- 2022年8月10日:使用 ASP.NET Core 为初学者构建 Web 应用程序--使用 ASP.NET Core 创建 Web UI(没看懂需要再看一遍)
- BM13 determines whether a linked list is a palindrome
- 云服务器基于 SSH 协议实现免密登录
- 实例051:按位与
- 二叉树 | 层序遍历 | leecode刷题笔记
- 金山云CEO王育林离职:正值冲刺港股之际 雷军曾送金砖
猜你喜欢
BM7 链表中环的入口结点
Addition of linked lists (2)
3598. Binary tree traversal (Huazhong University of Science and Technology exam questions)
Qualcomm Platform Development Series Explanation (Application) Introduction to QCMAP Application Framework
常用代码扩展点设计方式
一、ICESat-2数据查询,下载,与处理
geemap的详细安装步骤及环境配置
二叉树 | 代码随想录学习笔记
德科立科创板上市:年营收7.3亿 市值59亿
MySQL学习笔记(2)——简单操作
随机推荐
This visual tool artifact is more intuitive and easy to use!love so much
STL-stack
How to be a Righteous Hacker?What should you study?
链表相加(二)
Fatal error: cstring: No such file or directory
MySQL performance schema性能分析实战
如何利用fiddler连接手机抓包APP
ArcGIS中的坐标系统和投影变换
DC-9靶场下载及渗透实战详细过程(DC靶场系列)
pytorch手撕CNN
BM13 determines whether a linked list is a palindrome
y93.第六章 微服务、服务网格及Envoy实战 -- Envoy配置(四)
威纶通触摸屏如何在报警的同时,显示出异常数据的当前值?
B站数据分析岗实习生面试记录
蓝帽杯 2022 web/misc writeup
leetcode:357. 统计各位数字都不同的数字个数
【640. Solving Equations】
BM7 链表中环的入口结点
STL-deque
实例051:按位与