Site icon Hip-Hop Website Design and Development

Repair wp_term_relationships sluggish question in get_posts

I used the Question Monitor plugin to seek out sluggish question on my WordPress web site. The below-mentioned WP_Query->get_posts() takes about 0.3446 question trip of the entire Database Question time of 0.3976.

SELECT wp_posts.ID
FROM wp_posts 
LEFT JOIN wp_term_relationships
ON (wp_posts.ID = wp_term_relationships.object_id)
WHERE 1=1 
AND wp_posts.ID NOT IN (203598)
AND ( wp_term_relationships.term_taxonomy_id IN (17) 
OR wp_term_relationships.term_taxonomy_id IN (11652,20693,21952,23971,24907,24908,25928) )
AND wp_posts.post_type = 'submit'
AND ((wp_posts.post_status = 'publish'))
GROUP BY wp_posts.ID
ORDER BY wp_posts.post_date DESC
LIMIT 0, 6

I am guessing it has one thing to do with the 20,000+ Tags used on posts on my web site. Is that so? If sure, how do you recommend fixing this sluggish question? Or how ought to I am going about deleting Tags which are not utilized in greater than 5 posts of all of the posts on the positioning?

Please assist.