How long does it cost to get the database back? How long does it cost to write a disk?

Source: Internet
Author: User
Tags disk usage
How long does it cost to determine the database return? How long does it cost to write a disk?
To write data to a file after the database has been queried, but the wait time is too slow to find out where it takes longer, about 800,000 of the data, what methods can be traced to query time consuming and write disk Time
------Solution--------------------
Step time time should be OK, can use microtime precision to subtle
------Solution--------------------
These data, the general database will have internal variables, not the front-end PHP is concerned about, and generally not by the front-end to calculate.

such as MySQL with show global status; Can get a lot of internal information, including memory, disk usage and so on.

Specifically, you can use the database for Google to look under the
  • 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.