当前位置:网站首页>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.
边栏推荐
- 确诊了!是Druid1.1.20的锅,查询无法映射LocalDateTime类型(带源码解析及解决方案)
- 《DevOps围炉夜话》- Pilot - CNCF开源DevOps项目DevStream简介 - feat. PMC成员胡涛
- Leave a message with a prize | OpenBMB x Tsinghua University NLP: The update of the large model open class is complete!
- Glide缓存核心原理详解
- 如何成为一名正义黑客?你应该学习什么?
- ArcGIS应用基础知识
- CFdiv2-Beautiful Mirrors-(期望)
- MySQL performance schema性能分析实战
- virtual address space
- 【640. Solving Equations】
猜你喜欢
This visual tool artifact is more intuitive and easy to use!love so much
win系统下pytorch深度学习环境安装
瑞幸咖啡第二季营收33亿:门店达7195家 更换CFO
罗克韦尔AB PLC RSLogix5000中计数器指令使用方法介绍
3598. Binary tree traversal (Huazhong University of Science and Technology exam questions)
CFdiv2-Common Number-(奇偶数二分+规律)
How many threads does LabVIEW allocate?
BM7 list entry in central
这款可视化工具神器,更直观易用!太爱了
68:第六章:开发文章服务:1:内容梳理;article表介绍;创建【article】文章服务;
随机推荐
腾讯云轻量应用服务器配置及建网站教程
CFdiv2-Beautiful Mirrors-(期望)
BM13 determines whether a linked list is a palindrome
解码2022中国网安强星丨正向建、反向查,华为构建数字化时代的网络安全防线
云服务器基于 SSH 协议实现免密登录
音乐播放器(未完成版本)
2021 IDEA creates web projects
【软件测试】2022年最火的十大测试工具,你掌握了几个
电力系统潮流计算(牛顿-拉夫逊法、高斯-赛德尔法、快速解耦法)(Matlab代码实现)
学会开会|成为有连接感组织的重要技能
3598. 二叉树遍历(华中科技大学考研机试题)
【Linux】宝塔面板设置MySQL慢查询日志,未走索引日志
leetcode:357. 统计各位数字都不同的数字个数
带着昇腾去旅行:一日看尽金陵城里的AI胜景
华为HCIE云计算之Fusion Access桌面云
面试官: AMS在Android起到什么作用,简单的分析下Android的源码
二叉树 | 对称二叉树、相同的树、子树相同 | leecode刷题笔记
德科立科创板上市:年营收7.3亿 市值59亿
阿里云张新涛:支持沉浸式体验应用快速落地,阿里云云XR平台发布
MySQL学习笔记(1)——基础操作