MySQL use query cache cache Simple Tutorial

Source: Internet
Author: User

1. Query cache key is a SQL string, and requires exact matching: The case is not the same or more than one space, will result in cache miss

2. Query cache directly the user input of the original SQL as a key, not to parse or optimized after the SQL as a key, also will not be a subquery in which the independent cache

2. SQL results in stored procedures are not cached

3. If a SQL produces an indeterminate result (even if the data in the table is not changed), such as Select Now (), MySQL will not cache its results

4. Any changes in the data in the table will result in all query cache related to this table being invalidated

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.