I have a SQL query consumes a lot of CPU/MySQL time for my Wordpress site. The syntax/sample is following:
SET timestamp=XXX;
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE XXX=XXX AND wp_posts.post_type = 'XXX' AND (wp_posts.post_status = 'XXX') ORDER BY wp_posts.post_date DESC LIMIT XXX, XXX;
SET timestamp=1394317687;
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish') ORDER BY wp_posts.post_date DESC LIMIT 5190, 10;
Looks like it's "paging" related because it limits 10 posts in the query (10 is the number of posts per page). It's not done by the users because the site is not that active. I am wondering if it's possible that Google bots is trying to index all my pages?
Any advise & suggestion is very appreciated. Thanks.