the-admin 1 jaar geleden

MySQL in 3 Hours & MyISAM vs. InnoDB

By comparing the two storage engines, we get to the crux of the argument between using InnoDB over MyISAM.

A major factor in database performance is the storage engine used by the database, and more specifically, its tables. Different storage engines provide better performance in one situation over another.


For general use, there are two contenders to be considered. These are MyISAM, which is the default MySQL storage engine, or InnoDB, which is an alternative engine built-in to MySQL intended for high-performance databases. Before we can understand the difference between the two storage engines, we need to understand the term “locking.”


An application or website that has a frequently used table works exceptionally well using the InnoDB storage engine by resolving table-locking bottlenecks. However, the question of using one over the other is a subjective as neither of them is perfect in all situations.


There are strengths and limitations to both storage engines. Intimate knowledge of the database structure and query practices is critical for selecting the best storage engine for your tables.


MyISAM will out-perform InnoDB on large tables that require vastly more read activity versus write activity. (now used on aatventure.news, also because indexing is possible on varchar(500))


MyISAM’s readabilities outshine InnoDB because locking the entire table is quicker than figuring out which rows are locked in the table. The more information in the table, the more time it takes InnoDB to figure out which ones are not accessible.


If your application relies on huge tables that do not change data frequently, then MyISAM will out-perform InnoDB. Conversely, InnoDB outperforms MyISAM when data within the table changes frequently.


Table changes write data more than reading data per second. In these situations, InnoDB can keep up with large amounts of requests easier than locking the entire table for each one.


Admin
the-admin
0
# Web Development

MySQL | Date Format

The Admin 4 maanden geleden
0
# Web Development

Laravel 6 Beginner | 12 - MySQL Where Clause with Eloquent

Coder's Tape 8 maanden geleden
0
# Web Development

Laravel 6 Beginner | 07 - MySQL Database & SQLite

Coder's Tape 8 maanden geleden
0
# Web Development

MySQL Crash Course | Learn SQL

Traversy Media 1 jaar geleden