MySQL Paging slow accelerator solution MySQL paging optimized MySQL paging solution LIMIT optimization

Source: Internet
Author: User

Whether you are Innod engine limit paging slow or myisam engine limit paging slow , everyone select query paging This is generally the "data total 20,000, you need to query 3 fields":


SELECT ' id ', ' url ', ' content ' from ' product ' WHERE 1ORDER by ' id ' LIMIT 10000, 100
The execution speed is: 45.7Seconds


Haha, slow down the slag!

Author let again grand Recommendation

MYSQL LIMIT Paging Query accelerates the tool solution:

http://my.oschina.net/cart/

Select ' id ', ' url ', ' content ' from Productinner JOIN (select ' id ' from Productorder by ' id ' LIMIT 10000, +) as product2u SING (ID)
The execution speed is: 0 . theSeconds


We will not use the traditional paging method in the future, to use the latest paging optimization accelerator solution:

Select ' id ', ' url ', ' content ' from product INNER JOIN (SELECT ' ID ' from product ORDER by ' id ', ' LIMIT 0 ') as Product2 USING (ID)
Why is MySQL paging slow accelerator fast?


I just want to say 4 words: Overwrite index

MySQL Paging slow accelerator solution MySQL paging optimized MySQL paging solution LIMIT optimization

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.