MySQL storage engine features and selection recommendations

Source: Internet
Author: User
Tags bulk insert

MySQL official storage engine more common storage engines are: Innodb, MyISAM, Memory, Archive, NDB, BDB, third-party more famous: Tokudb, Infobright, INNFINIDB, XtraDB (InnoDB enhanced version)

The official storage engine features a comparison

MySQL Storage engine comparison
properties Span style= "Font-weight:bold;text-align:center;background-color:rgb (247,247,247);" >myisam InnoDB Memory NDB
Storage limits No 64TB Yes No Yes No
Transaction


MVCC

Lock particle size Table Row Table Row Row Page
B-Tree Index
Hash index


Full-Text Indexing 5.6 Support E-Text



Cluster index




Data caching


Index cache

Data compression



BULK INSERT High Relatively low High Very high High High
Memory consumption Low High In Low High Low
FOREIGN key support




Replication support
Query cache
Backup recovery
Cluster support





TOKUDB: Support for data compression, one engine for high-speed writing, but not for update-multiple scenarios

INFOBRIGHT/INFINIDB: Columnstore-based engine for OLAP environments, Infobright Community Edition supports only load data operations


Choose the storage engine and recommendations: according to different business to choose the right business storage engine, MySQL storage engine many, different libraries, different tables are supported to select different storage engine, the same library is recommended to use the same storage engine, because the different storage engine tables between the join operation is slow


Common recommendation: Innodb, non-special scenes, Innodb storage engine can generally meet the requirements

If there is big data written to the bulk read operation: tokudb

For OLAP you can consider using Infinidb/infobright

If the data volume is small and requires fast, no persistence requirement: Memory

Try not to select the MyISAM storage engine: Because the MyISAM storage engine can only use a single CPU, memory can only use 4 G, only index in memory, and poor concurrency


This article is from the "Small Fish Blog" blog, please be sure to keep this source http://395469372.blog.51cto.com/1150982/1726147

MySQL storage engine features and selection recommendations

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.