Quantcast
Channel: Topic Tag: MySQL | WordPress.org
Viewing all articles
Browse latest Browse all 5527

uday.dahale on "slow-queries with many posts. what is this sql SELECT doing?"

$
0
0

Hello admin n all,

I want optimize below query

SELECT id, post_date_gmt FROM wp_posts WHERE post_status = 'publish' AND post_type
IN ('post', 'page', 'attachment', 'xx', 'xx', 'xx', 'xx', 'xx', 'xx', 'xx') ORDER BY post_date_gmt DESC LIMIT 1

Please do needful or give me solution for this

regards,
UD


Viewing all articles
Browse latest Browse all 5527

Trending Articles