Optimization Methods Based on MYSQL

Source: Internet
Author: User

Mysql storage engine myisam, innodb, and memory
Memory will be introduced later
Innodb supports transactions, foreign keys, and row locks. mysql does not.
Innodb does not support fulltext index types
Innodb does not save the specific number of rows
Auto_increment of innodb does not support joint Indexing
When innodb deletes a table, a row is deleted.
--------------------------------------------------------------------------------
Database Operation Optimization for large websites
1. read/write splitting. The primary/secondary mode is used to distribute data pressure and improve query speed.
2. Split databases horizontally or vertically according to business characteristics. To improve database access efficiency, you can simply change a large database to a small database and a large table to a small table. Generally, a database with many or more N records in a table can significantly reduce the service capability of the database. For example, the number of records in a mysql DATA table reaches about, performance is almost intolerable.

Next bottleneck in the database
1. Transaction operations: data tables designed in transactions are locked during operation. In this case, the data accessing these tables may be delayed.
2. Data Update: any table in the database will also be locked during data update, resulting in latency.
Memcache will not see the above situation.

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.