Is there a way to list all the database queries my wordpress install is making for a given event?

Posted by mattloak on Stack Overflow See other posts from Stack Overflow or by mattloak
Published on 2010-03-18T20:17:02Z Indexed on 2010/03/19 0:41 UTC
Read the original article Hit count: 362

Filed under:
|

Using a method similar to the one described here: (http://stackoverflow.com/questions/14873/how-do-i-display-database-query-statistics-on-wordpress-site), I can see the total number of queries being made when I load a page.

Now I'd like to output a list of the queries that are being made when the page loads. This would allow me to see who my biggest resource hogs are without having to go through the process of elimination of all my plugins and theme scripts.

How would I do this? Thanks.

© Stack Overflow or respective owner

Related posts about Wordpress

Related posts about database-queries