MySQL optimization essentials (i)

Source: Internet
Author: User

It is important to note that a function is used in an SQL statement because it is possible that each statement will be called, even if each record in the table is called.

Pay attention to the conversion, will consume a lot of performance, even the string of encoding different, there will be very large consumption

The count (*) function of three MyISAM, the number of records will be removed from the table information directly.

Conditions for four constant table:

1 empty table and a table with only one record.

2 the query condition in query statement exactly matches the clustered index or Unquie

Pros: Such tables are always faster than other tables.

MySQL optimization essentials (i)

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.