Mysql big data table update is slow to solve

Source: Internet
Author: User

Mysql big tree data table update is slow Solution Problem description: tens of millions of data tables, update where gid = "adadadfadsfasdf", returned results show analysis between 70 ms to 1 s: The table is large, so update, it may be necessary to retrieve the index first and then the page, but even if it is a disk operation, each disk operation takes 5 ms, which may take 20 or 30 ms, so the time must be spent on io wait. Iostat-x-d 1 3 is used to display the waiting time for dozens of milliseconds, so the time is indeed spent on io wait. Solution: reduce io and increase mysql memory, which is 10 Gb, now 50 GB

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.