Long Queries when hosted on WPEngine
-
I just moved my site to WPEngine to speed it up and it got a lot slower ?? Apparently it’s an issue with The Events Calendar which raises lots of ‘Long Queries’ – I have seen a couple of posts about this on the web, but nothing about a solution – and wondered if one is coming?
Here is an example of what I get (lots like this….)
[Tue Jul 01 08:48:57 2014] [error] [client 91.250.246.135] LONG QUERY (1202 characters long generated in /nas/wp/www/cluster-1681/bwtl/wp-content/plugins/the-events-calendar/lib/tribe-event-query.class.php:851): SELECT SQL_CALC_FOUND_ROWS DISTINCT wp_posts.*, wp_postmeta.meta_value as EventStartDate, tribe_event_end_date.meta_value as EventEndDate FROM wp_posts INNER 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) LEFT JOIN wp_postmeta as tribe_event_end_date ON ( wp_posts.ID = tribe_event_end_date.post_id AND tribe_event_end_date.meta_key = ‘_EventEndDate’ ) WHERE 1=1 AND ( wp_term_relationships.term_taxonomy_id IN (794) ) AND wp_posts.post_type = ‘tribe_events’ AND (wp_posts.post_status = ‘publish’) AND (wp_postmeta.meta_key = ‘_EventStartDate’ ) AND wp_posts.ID IN ( SELECT ID FROM wp_posts WHERE ID NOT IN ( SELECT post_id FROM wp_postmeta WHERE wp_postmeta.meta_key = ‘groups-groups_read_post’ ) UNION ALL SELECT post_id AS ID FROM wp_postmeta WHERE wp_postmeta.meta_key = ‘groups-groups_read_post’ AND wp_postmeta.meta_value IN (”) ) AND (wp_postmeta.meta_value >= ‘2014-07-01 09:48:57’ OR (wp_postmeta.meta_value <= ‘2014-07-01 09:48:57’ AND tribe_event_end_date.meta_value >= ‘2014-07-01 09:48:57’ )) ORDER BY DATE(wp_postmeta.meta_value) ASC, TIME(wp_postmeta.meta_value) ASC LIMIT
- The topic ‘Long Queries when hosted on WPEngine’ is closed to new replies.