When php queries MySQL too much, the web page will hang. How to solve this problem?
大家讲道理2017-05-25 15:08:16
0
3
672
I recently changed the server and reinstalled the system. I don’t know if there is an incorrect configuration problem. When accessing mysql to query several large pages, it will hang, as shown below. What may be the reason?
According to your question, the query when accessing MySQL is relatively large. What does large mean? Is it a large amount of query data or a large number of query tables? If so, it is recommended that you optimize the query efficiency first and then see the effect.
/q/10...
The request has timed out, please use ajax asynchronous request instead.
According to your question, the query when accessing MySQL is relatively large. What does large mean? Is it a large amount of query data or a large number of query tables? If so, it is recommended that you optimize the query efficiency first and then see the effect.