Slow query after update to 1.0.37
-
Hello,
With the update from 1.0.36 to 1.0.37 you have changed the query args on several places to something like this:
'meta_query' => array( array( 'value' => 'hide-amp', 'compare' => '!=' ) )
We have monitored that with these updates the DB-load jumps 100% from 0,2 to 0,4.
The slow-query-log is showing many SQL queries like this one:SELECT wp_posts.ID FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) WHERE 1=1 AND wp_posts.ID NOT IN (301840) AND ( wp_term_relationships.term_taxonomy_id IN (6,394) ) AND ( wp_postmeta.meta_value != 'hide-amp' ) AND wp_posts.post_password = '' AND wp_posts.post_type = 'post' AND ((wp_posts.post_status = 'publish')) GROUP BY wp_posts.ID ORDER BY wp_posts.ID DESC LIMIT 0, 3
The SQL-process overview is showing tons of query like this and every query takes round about 2-3 seconds, which is not good for the health of our site.
Please check this outm re-change the query args and optimize your queries.
Best regards,
Ben
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Slow query after update to 1.0.37’ is closed to new replies.