Made my admin slow by querying users
-
UPDATED: this query made our admin slow, but the developer has responded with clarifications, will update to 5 stars once optimized.
Inflicting query:
SELECT SQL_CALC_FOUND_ROWS wp_users.*
FROM wp_users
WHERE 1=1
AND wp_users.ID IN (
SELECT DISTINCT wp_posts.post_author
FROM wp_posts
WHERE wp_posts.post_status = ‘publish’
AND wp_posts.post_type IN ( ‘post’, ‘page’, ‘attachment’, ‘product’ ) )
ORDER BY user_login ASC
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Made my admin slow by querying users’ is closed to new replies.