当前位置:网站首页>MySql5.5之后的默认存储引擎为InnoDB。
MySql5.5之后的默认存储引擎为InnoDB。
2022-07-28 13:02:00 【学习微站】
MySql5.5之后的默认存储引擎为InnoDB。
索引是帮助高效获取数据的排好序的数据结构。不断地缩小范围查找,类似字典目录查找。
索引可以避免全表扫描。InnoDB底层默认b+tree
b+tree基于平衡二叉树的一种多路平衡查找树,减少磁盘次数提高查询效率。与b树不同的是:1 非叶子节点只存储键值信息
2 所有叶子节点之间都有一个链指针
3 数据记录都存放在叶子节点中
Hash表索引与b-tree索引对比
Hash索引比较其中的hash值,当进行精确查找的时候效率非常高。当大量数据会使得,
查询效率和空间利用率大大降低。而且哈希值是无序的,无法进行范围查找和排序。
因为业务大部分使用范围查找和统计相关操作,所以B-tree索引使用较多。
Innodb引擎底层实现:聚合索引方式
Innodb存储引擎主要支持B+tree索引、hash索引、全文索引。常用最高效的是B+Tree索引。
mysql当前数据库中的B+Tree索引可以分为聚集索引和辅助索引。
InnoDB的内存架构主要分为三大块,缓冲池(Buffer Pool)、重做缓冲池(Redo Log Buffer)和额外内存池
Innodb 和 MyISAM的区别
事务 支持 不支持
主键 有主键,没有自动生成 允许没有任何索引和主键的存在
外键 支持 不支持
表锁 行锁、表锁 表锁
全文索引 不支持,可用插件 支持
行数 需要扫全表 直接读取
边栏推荐
- 安全保障基于软件全生命周期-Istio的授权机制
- P1797 heavy transportation problem solution
- DOJNOIP201708奶酪题解
- UVA11175有向图D和E From D to E and Back题解
- 安全保障基于软件全生命周期-PSP应用
- URL related knowledge points
- UVA1599理想路径题解
- .net for subtraction, intersection and union of complex type sets
- Several efficient APIs commonly used in inventory operation URL
- R language ggplot2 visualization: use ggviolin function of ggpubr package to visualize violin diagram and set draw_ The quantiles parameter adds a specified quantile horizontal line (for example, 50%
猜你喜欢

安全保障基于软件全生命周期-Istio的认证机制

算法---不同路径(Kotlin)

30 day question brushing plan (III)

Qt5 development from introduction to mastery -- the first overview
![[basic course of flight control development 7] crazy shell · open source formation UAV SPI (barometer data acquisition)](/img/ad/e0bc488c238a260768f7e7faec87d0.png)
[basic course of flight control development 7] crazy shell · open source formation UAV SPI (barometer data acquisition)

论文研读--Masked Generative Distillation

对“Image Denoising Using an Improved Generative Adversarial Network with Wasserstein Distance“的理解

产品经理:岗位职责表

拒绝服务 DDoS 攻击

Slam thesis collection
随机推荐
最强分布式锁工具:Redisson
Istio IV fault injection and link tracking
Understanding of "image denoising using an improved generic advantageous network with Wasserstein distance"
URL related knowledge points
Graph traversal (BFS & DFS basis)
[Architecture] reading notes of three micro service books with high scores
Long closed period private placement products reappearance industry insiders have different views
Intersectionobserver
R language uses LM function to build linear regression model and subset function to specify subset of data set to build regression model (use floor function and length function to select the former pa
Postgresql14安装及主从配置
The strongest distributed locking tool: redisson
P1797 heavy transportation problem solution
Product Manager: job responsibility table
TS literacy method - Basic chapter
Duplicate data in leetcode (442) array
30天刷题计划(四)
Rolling update strategy of deployment.
Continuous (integration -- & gt; delivery -- & gt; deployment)
Qt5开发从入门到精通——第一篇概述
第六章 支持向量机