Why we use innodb as Engine in MySQL?
InnoDB is a storage engine in MySQL. InnoDB's greatest strengths are:
- Its design follows the ACID model, with transactions featuring commit, rollback, and crash recovery capabilities to protect user data.
- Row-level locking (without escalation to coarser granularity locks) and Oracle-style consistent reads increase multi-user concurrency and performance.
- Foreign key constraints. Allowing you to let the database ensure the integrity of the state of the database, and the relationships between tables.
- InnoDB tables arrange your data on disk to optimize common queries based on primary keys. Each InnoDB table has a primary key index called the clustered index that organizes the data to minimize I/O for primary key lookups.
- You can freely mix InnoDB tables with tables from other MySQL storage engines, even within the same statement. For example, you can use a join operation to combine data from InnoDB and MEMORY tables in a single query.
InnoDB Limitations:
- No full-text indexing (Below-5.6 mysql version)
- Cannot be compressed for fast, read-only
Comments
Post a Comment