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
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.