MySQL Storage engine selection

Source: Internet
Author: User

Generally speaking, there are innodb, in most cases, InnoDB can meet our daily needs, so after MySQL 5.5, InnoDB as the default storage engine. That is, in addition to some features InnoDB cannot provide, we will be able to choose other engines.

Transaction

If the transaction is to be used, then InnoDB is the second choice, at least for now. Because MyISAM does not support transactions, if you do not need transactions, mainly query, insert and other operations, then you can also use MyISAM.

Backup

In many cases, we are backing up the data while the application is still running, so if this is the case, the InnoDB comes in handy. Of course, if it is downtime backup, then do not have any problems, do not have to consider so many problems.

Crash recovery

If the system crashes, how can the data for high-speed recovery, which is a test for engineers, compared with MyISAM, innodb protection of the degree of better and faster recovery, so in this case, InnoDB is also the first choice.

Holding characteristics

Some applications may take advantage of some specific features or optimizations of the storage engine. If an application requires a variety of features, but these features cannot be fully provided by a single storage engine, it is necessary to consider the coordination of multiple engines, and consider some tradeoffs.

Read more and write fewer tables

If a table is only for reading data or most of the time it is read, use MyISAM, but as mentioned above, MyISAM is prone to collapse, if this is negligible, then use MyISAM.

Data compression

MyISAM in the table compression is very advantageous, compared with the compression before the table will save a lot of space, but the compressed table is read only, if this feature is placed in read-only scenarios, then this advantage is greatly displayed.

Large amount of data

If the amount of data increase to more than 10TB, then InnoDB and MyISAM Basic, if you want to spot, then have the consequences of conceit. So we have to use other solutions, Infobright is the MySQL Data Warehouse to provide the best way.

Source: http://blog.csdn.net/sinat_36246371/article/details/54016013

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.