slow query
-
For a large site with thousands of commnet, the following code take 80s to run, how could this be speed up?
SELECT n.comment_approved, COUNT( * ) AS total FROM wp_comments AS n LEFT JOIN wp_posts AS m ON n.comment_post_ID = m.ID WHERE ( n.comment_type NOT IN ( 'cr_qna' ) AND (m.post_type = 'product' OR n.comment_post_ID IN ( 28 ) ) ) GROUP BY n.comment_approved
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘slow query’ is closed to new replies.