当前位置:网站首页>Differences between MySQL storage engine MyISAM and InnoDB
Differences between MySQL storage engine MyISAM and InnoDB
2022-07-07 12:57:00 【LC181119】
1.MyISAM Storage engine
MyISAM Engine features
- Unsupported transaction
- Table level locking
- Reading and writing block each other , Write cannot read , You can't write when you read
- Cache index only
- Foreign key constraints are not supported
- Clustered index is not supported
- Read data faster , Less resources
- I won't support it MVCC( Multi version concurrency control mechanism ) High concurrency
- Crash recovery is poor
- MySQL5.5.5 The default database engine before
- read-only ( Or write less )
- Small table ( Long time repair operation is acceptable )
- tbl_name.frm Table format definition
- tbl_name.MYD Data files
- tbl_name.MYI Index file
2.InnoDB engine
- Row-level locks
- Support transactions , Suitable for dealing with a large number of short-term Affairs
- Read and write blocking is related to transaction isolation level
- Cacheable data and indexes
- Support clustering index
- Crash resilience is better
- Support MVCC High concurrency
- from MySQL5.5 Full text index is supported after
- from MySQL5.5.5 Start with the default database engine

- all InnoDB The data and index of the table are placed in the same tablespace
Data files :ibdata1, ibdata2, Store in datadir Defined directoryTable format definition :tb_name.frm, Store in datadir Define the corresponding directory of each database
- Each form uses a single table space to store the data and index of the table
The two types of files are placed in a separate directory corresponding to each database
Data files ( Store data and index ):tb_name.ibd
Table format definition :tb_name.frm
边栏推荐
- mysql怎么创建,删除,查看索引?
- Leetcode brush questions: binary tree 19 (merge binary tree)
- Sample chapter of "uncover the secrets of asp.net core 6 framework" [200 pages /5 chapters]
- Leetcode skimming: binary tree 21 (verifying binary search tree)
- @Resource和@Autowired的区别?
- 广州市召开安全生产工作会议
- [learn microservices from 0] [03] explore the microservice architecture
- Star Enterprise Purdue technology layoffs: Tencent Sequoia was a shareholder who raised more than 1billion
- 红杉中国完成新一期90亿美元基金募集
- layer弹出层的关闭问题
猜你喜欢
2022聚合工艺考试题模拟考试题库及在线模拟考试
Leetcode skimming: binary tree 25 (the nearest common ancestor of binary search tree)
About IPSec
Polymorphism, final, etc
. Net ultimate productivity of efcore sub table sub database fully automated migration codefirst
Leetcode skimming: binary tree 21 (verifying binary search tree)
智云健康上市:市值150亿港元 SIG经纬与京新基金是股东
Leetcode question brushing: binary tree 26 (insertion operation in binary search tree)
Importance of database security
3D content generation based on nerf
随机推荐
环境配置篇
Grep of three swordsmen in text processing
[crawler] avoid script detection when using selenium
Day-16 set
Lingyunguang of Dachen and Xiaomi investment is listed: the market value is 15.3 billion, and the machine is implanted into the eyes and brain
博文推荐|Apache Pulsar 跨地域复制方案选型实践
Day21 multithreading
How to reset Firefox browser
在字符串中查找id值MySQL
- Oui. Migration entièrement automatisée de la Sous - base de données des tableaux d'effets sous net
Four functions of opencv
ClickHouse(03)ClickHouse怎么安装和部署
2022聚合工艺考试题模拟考试题库及在线模拟考试
HZOJ #240. Graphic printing IV
Layer pop-up layer closing problem
Cookie
File operation command
Session
Ip2long and long2ip analysis
明星企业普渡科技大裁员:曾募资超10亿 腾讯红杉是股东