O
O
omilen832018-01-27 22:46:58
PHP
omilen83, 2018-01-27 22:46:58

How to find out which database requests are sent to when generating a page?

To increase page loading speed, I want to reduce the number of queries to the database. How to find out which databases are being sent requests when generating a page?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lazy @BojackHorseman PHP, 2018-01-27
Tag

search by code for connection parameters to the database.
ps to "increase download speed" first look at the timings in the browser, and then, if necessary, profile the actual scripts. xhprof suits me perfectly. if profiling shows that requests are slowing down, then we take requests and look at their plan. I also advise you to google and set up mysql slow query log on the muscle

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question