Categories: MySQL

MySQL Storage Engines

Share

When you create a database you have to choose the storage engine for storing data into the database. MySQL supports various types of storage engines i.e. MyISAM, InnoDB, MERGE, MEMORY (HEAP), ARCHIVE, CSV, FEDERATED.

Each storage engines has different performance of the database and has advantages or disadvantages.

Here is the list of MySQL Storage Engines:

MyISAM:
When you create a table and if you do not specify the storage engine MyISAM was the default storage engine. But from version 5.5, MySQL uses InnoDB as the default storage engine.

This storage engine is optimized for compression and speed and also portable between operating systems and platforms.

MyISAM table can be up to 256TB in size and not transaction-safe.

InnoDB:
From version 5.5, MySQL uses InnoDB as the default storage engine. Same as MyISAM, InnoDB tables are portable between different platforms and operating systems.

InnoDB table can be up to 64TB in size and fully support ACID property, transactions, foreign keys, commit, rollback, roll-and forward operations.

CSV:
This type of engine use comma-separated values (CSV) file format. This does not support NULL data type.

Archive:
This type of engine only allow INSERT and SELECT statements and do not support indexes.
For a large number of records you can use this engine and for archiving purpose you can compress format to save disk space.

Memory:
Formerly known as HEAP, this engine is faster than MyISAM tables. It is stored in memory using hash index.

MERGE:
During joining multiple tables this storage engine is useful for speed up performance. SELECT, DELETE, UPDATE and INSERT operations are used in MERGE tables.

FEDERATED:
This type of storage engine allows to manage data from a remote MySQL server. This does not use cluster or replication technology.

Recent Posts

Unveiling the Truth: Is the Spread of Sinus Infections a Myth or Reality?

Sinus infections, impacting approximately 31 million Americans each year, represent a significant health concern stemming…

1 day ago

Best Exercises To Reduce Weight & Keep You Stronger & Fitter!

No doubt that balanced weight is the key to wellness. So, when it comes to…

1 day ago

ARTIFICIAL INTELLIGENCE: Advantages And Disadvantages? Everything You Need to Know

Pros And Cons Of AI: Artificial Intelligence directly translates to conceptualizing and building machines that…

2 days ago

Four common mistakes when picking an internet provider

We all live on the internet; we use it for everything. Thus, when it comes…

2 days ago

What Is Commonly Misdiagnosed as Pink Eye: Understanding Eye Conditions and Their Symptoms

Introduction: Pink eye, or conjunctivitis, is a common eye condition characterized by redness and inflammation…

2 days ago

Why Flexible Financing is the Future of Small Business

Small businesses are the backbone of the economy. Still, they often face daunting hurdles when…

2 days ago