栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 前沿技术 > 大数据 > 大数据系统

官网权威Innodb 与 MyISAM 区别总结

官网权威Innodb 与 MyISAM 区别总结

官网权威Innodb 与 MyISAM 区别总结

先总结一下:

  • InnoDB支持『事务』,MyISAM不支持

  • InnoDB支持『聚簇索引』,MyISAM不支持

  • InnoDB支持『数据缓存』,MyISAM不支持数据缓存

  • InnoDB支持『MVCC』(多版本控制锁),MyISAM不支持

  • InnoDB支持『外键』,MyISAM不支持

  • InnoDB从MySQL 5.6版本以后才支持全文索引,MyISAM一直支持

  • InnoDB从MySQL5.7版本以后才支持地理空间索引,MyISAM一直支持

  • InnoDB内部创建哈希索引来实现自适应哈希索引特性,MyISAM没有hash 索引

  • InnoDB支持『表锁 + 行锁』,MyISAM只支持『表锁』

  • InnoDB存储最大限制是64TB,MyISAM存储最大限制是256TB

一共是上述十点,对应的表格对比如下表格所示:

Table 15.1 InnoDB Storage Engine Features

FeatureSupport
B-tree indexes(其实这里指的是B+树)Yes
Backup/point-in-time recovery (Implemented in the server, rather than in the storage engine.)Yes
Cluster database supportNo
Clustered indexesYes
Compressed dataYes
Data cachesYes
Encrypted dataYes (Implemented in the server via encryption functions; In MySQL 5.7 and later, data-at-rest encryption is supported.)
Foreign key supportYes
Full-text search indexesYes (Support for FULLTEXT indexes is available in MySQL 5.6 and later.)
Geospatial data type supportYes
Geospatial indexing supportYes (Support for geospatial indexing is available in MySQL 5.7 and later.)
Hash indexesNo (InnoDB utilizes hash indexes internally for its Adaptive Hash Index feature.)
Index cachesYes
Locking granularityRow
MVCCYes
Replication support (Implemented in the server, rather than in the storage engine.)Yes
Storage limits64TB
T-tree indexesNo
TransactionsYes
Update statistics for data dictionaryYes
FeatureSupport

表格来源

Table 16.2 MyISAM Storage Engine Features

FeatureSupport
B-tree indexesYes
Backup/point-in-time recovery (Implemented in the server, rather than in the storage engine.)Yes
Cluster database supportNo
Clustered indexesNo
Compressed dataYes (Compressed MyISAM tables are supported only when using the compressed row format. Tables using the compressed row format with MyISAM are read only.)
Data cachesNo
Encrypted dataYes (Implemented in the server via encryption functions.)
Foreign key supportNo
Full-text search indexesYes
Geospatial data type supportYes
Geospatial indexing supportYes
Hash indexesNo
Index cachesYes
Locking granularityTable
MVCCNo
Replication support (Implemented in the server, rather than in the storage engine.)Yes
Storage limits256TB
T-tree indexesNo
TransactionsNo
Update statistics for data dictionaryYes

表格来源

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/283150.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号