MYSQL common search engine comparison

Engine comparison.png
MyISAM-Reading
InnoDB-Things

The most commonly used storage engines:

  • Myisam storage engine: Each Myisam is stored in three files on the disk. The file names are the same as the table names, and the extensions are .frm (memory table definition), .MYD (memory data), and .MYI (memory index). Data files and index files can be placed in different directories, evenly distributed io, get faster speed. There is no limit to the storage size. The maximum effective table size of the MySQL database is usually determined by the operating system's limit on the file size.
  • InnoDB storage engine: transaction security with the ability to commit, rollback, and crash recovery. Compared with Myisam, InnoDB has a lower write efficiency and consumes more disk space to retain data and indexes.

How to choose the right engine

Myisam: It is the most commonly used storage engine in the Web, data warehousing and other application environments;
InnoDB: for transaction processing applications, with more features, including ACID transaction features.

WeChat public account

Published 41 original articles · Liked 14 · Visitors 10,000+

Guess you like

Origin blog.csdn.net/Yunwei_Zheng/article/details/104016783