Introduction to MySql storage engine - InnoDB, MyISAM, Memory

1. MySql architecture

insert image description here
insert image description here

2. Introduction to storage engine

The storage engine is the implementation of technologies such as storing data, building indexes, and updating/querying data. The storage engine is based on tables, not libraries, so storage engines can also be called table types. The default storage engine of Mysql after version 5.5 is the InnoDB storage engine.

insert image description here

3. Characteristics of the storage engine

3.1 Features of InnoDB storage engine

insert image description here
InnoDB logical storage structure, the size of an area is 1M, and the size of a page is 16K. So an area can contain 64 pages.
insert image description here

3.2 MyISAM storage engine introduction

insert image description here

3.3 Memory storage engine introduction

insert image description here

4. Characteristics of the three storage engines

insert image description here

5. Selection of storage engine

The cases where the MyISAM storage engine was used are now replaced by NoSQL type engines such as MangoDB. The use of engines such as Memory is now also replaced by another NoSQL type of database, Redis.
insert image description here

6. Summary

insert image description here

Guess you like

Origin blog.csdn.net/weixin_44860226/article/details/131626884