当前位置:网站首页>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.
边栏推荐
猜你喜欢
音乐播放器(未完成版本)
阿里云张新涛:支持沉浸式体验应用快速落地,阿里云云XR平台发布
德科立科创板上市:年营收7.3亿 市值59亿
CFdiv2-Beautiful Mirrors-(期望)
68: Chapter 6: Develop article services: 1: Content sorting; article table introduction; creating [article] article services;
CFdiv2-Common Number-(奇偶数二分+规律)
This visual tool artifact is more intuitive and easy to use!love so much
二叉树 | 层序遍历 | leecode刷题笔记
Introduction to the use of counter instructions in Rockwell AB PLC RSLogix5000
如何成为一名正义黑客?你应该学习什么?
随机推荐
学会开会|成为有连接感组织的重要技能
Nodes in the linked list are flipped in groups of k
过滤器
如何成为一名正义黑客?你应该学习什么?
罗克韦尔AB PLC RSLogix5000中计数器指令使用方法介绍
分享一个后台管理系统可拖拽式组件的设计思路
2021 IDEA creates web projects
实例053:按位异或
OneNote tutorial, how to organize notebooks in OneNote?
诺诚健华通过注册:施一公家族身价15亿 高瓴浮亏5亿港元
RecyclerView滑动监听
PyQt5 窗口自适应大小
风控逻辑利器---规则引擎
mysql中的三大日志
【MySQL】mysql因为字符集导致left join出现Using join buffer (Block Nested Loop)
LabVIEW分配多少线程?
virtual address space
How does the Weiluntong touch screen display the current value of abnormal data while alarming?
音乐播放器(未完成版本)
双向循环链表-配有视频讲解