MySQL study note _ How to select an appropriate storage engine

Source: Internet
Author: User

MySQL learning note _ How to choose the appropriate storage engine MyISAM: suitable for use with select and insert-based, with only a few updates and delete, and transaction integrity,
Concurrency requirements are not very high. MySQL is one of the most commonly used storage engines in the Web, data warehouse, and other application environments. Www.2cto.com InnoDB: used for transaction processing applications. It supports foreign keys. If the application has high requirements on transaction integrity,
Data Consistency is required under concurrent conditions. In addition to insert and select, data operations also include many update and delete operations,

Therefore, the InnoDB Storage engine should be a suitable choice. In addition to effectively reducing the locking caused by deletion and update, the InnoDB Storage Engine,
It can also ensure the complete Commit and Rollback of transactions, and ensure data accuracy for similar billing systems or financial systems.
For systems with high requirements, InnoDB is a suitable choice. In addition, note that the select count (*) query efficiency of the InnoDB type table is very poor.
MEMORY: stores all data in RAW and provides extremely fast access in environments where you need to quickly locate records and other similar data.

MEMORY has a limitation on the table size. A large table cannot be cached in the MEMORY. The second is to ensure that the table data can be recovered,
The data in the table can be recovered after the database ends abnormally. MEMORY tables are usually used to update small tables that are not frequently updated for quick access.
Author: Acacia Forest

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.