English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

When should you use MyISAM and InnoDB?

InnoDB is a general-purpose storage engine that can balance high reliability and high performance. From MySQL 5.6Starting, InnoDB is the default MySQL storage engine.

InnoDB can be used for various purposes. Here are some of them-

  • It can be used for transactional purposes, that is, all ACID properties.

  • InnoDB can be used for row-level locking, which means it has higher performance compared to MyISAM.

  • InnoDB can be used for data and indexes in large buffer pools.

  • InnoDB can be used when we need better performance than MyISAM.

MyISAMIs5.5 1The default storage engine for previous versions of the MySQL relational database management system.

MyISAM can also be used for various purposes.

  • MyISAM is easy to use for creating and designing. Therefore, it is suitable for beginners.

  • There is no complexity involved in the foreign key relationships between tables in MyISAM.

  • It is faster compared to InnoDB.

  • It can be used when we need the lowest performance.