Here's an example of a slow query (25 seconds)... it seems as if it's the "recent comments" plugin, but I cannot be 100% sure.
Can anyone suggest an index (in either wp_posts or wp_comments) that might speed up this query?
I've done everything possible under wordpress (caching, sql query cache, opcode cache, and more)..
# Query_time: 25 Lock_time: 0 Rows_sent: 15 Rows_examined: 72625
SELECT wp_posts.ID, post_title, post_name, post_date,
COUNT(wp_comments.comment_post_ID) AS 'comment_total' FROM wp_posts LEFT JOIN wp_comments ON wp_posts.ID = wp_comments.comment_post_ID WHERE comment_approved = '1' AND post_date_gmt < '2007-07-30 13:42:54' AND post_status = 'publish' AND post_password = '' GROUP BY wp_comments.comment_post_ID ORDER BY comment_total DESC LIMIT 15;
Thanks again in advance.