For the past two days in a row, my host has taken my site offline because it uses too many resources.
In both cases, I received a report detailing variations on the same MYSQL query:
USER: xxx_wrdp1
DB: xxx_wrdp1
STATE: Creating sort index
TIME: 1
COMMAND: Query
INFO: SELECT l.ID, post_title, post_content, post_name, post_parent, post_author, post_status, post_modified_gmt, post_date, post_date_gmt
FROM ( SELECT wp_posts.ID
FROM wp_posts
WHERE wp_posts.post_status IN ('publish') AND
wp_posts.post_type = 'post'
AND wp_posts.post_password = ''
AND wp_posts.post_date != '0000-00-00 00:00:00'
ORDER BY wp_posts.post_modified ASC LIMIT 100 OFFSET 142200
)
This is not a query I've run manually, so I'm trying to understand if it's being run by a plugin or some other automated process so I can either improve or stop it.
If you have any suggestions on how I can find out what's prompting the query to run, I'd appreciate it. Thanks!