{"id":1128207,"date":"2016-06-16T16:28:41","date_gmt":"2016-06-16T23:28:41","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/slow-database-query-slow-wordpress-dashboard\/"},"modified":"2016-06-16T16:28:41","modified_gmt":"2016-06-16T23:28:41","slug":"slow-database-query-slow-wordpress-dashboard","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/slow-database-query-slow-wordpress-dashboard\/","title":{"rendered":"Slow Database Query &#8211; Slow WordPress Dashboard"},"content":{"rendered":"<p>Hi,<\/p>\n<p>We are hosting with WP Engine and noticing some really slow Dashboard speeds. When we de-activate The Events Calendar (Pro), the speed improves by 1-2 seconds per page in the Dashboard. We have 995 events (mostly recurring). It takes 10 seconds to load the Event list in the Dashboard. <\/p>\n<p>We are getting the following Slow Query warning from The Query Monitor:<\/p>\n<p>SELECT SQL_CALC_FOUND_ROWS DISTINCT wp_posts.*, tribe_event_start_date.meta_value as EventStartDate, tribe_event_end_date.meta_value as EventEndDate<br \/>\nFROM wp_posts<br \/>\nLEFT JOIN wp_postmeta as tribe_event_end_date<br \/>\nON ( wp_posts.ID = tribe_event_end_date.post_id<br \/>\nAND tribe_event_end_date.meta_key = &#8216;_EventEndDate&#8217; )<br \/>\nLEFT JOIN wp_postmeta AS tribe_event_start_date<br \/>\nON wp_posts.ID = tribe_event_start_date.post_id<br \/>\nAND tribe_event_start_date.meta_key = &#8216;_EventStartDate&#8217;<br \/>\nWHERE 1=1<br \/>\nAND wp_posts.post_type = &#8216;tribe_events&#8217;<br \/>\nAND (wp_posts.post_status = &#8216;publish&#8217;<br \/>\nOR wp_posts.post_status = &#8216;acf-disabled&#8217;<br \/>\nOR wp_posts.post_status = &#8216;future&#8217;<br \/>\nOR wp_posts.post_status = &#8216;draft&#8217;<br \/>\nOR wp_posts.post_status = &#8216;pending&#8217;<br \/>\nOR wp_posts.post_status = &#8216;private&#8217;)<br \/>\nORDER BY tribe_event_end_date.meta_value DESC, tribe_event_start_date.meta_value DESC, wp_posts.post_date DESC<br \/>\nLIMIT 0, 100 \/* From [intercambio.org\/wp-admin\/edit.php?post_type=tribe_events&amp;orderby=end-date&amp;order=desc&amp;ids=3387%2C2513%2C2512%2C2492%2C2456%2C1136%2C1229%2C1226%2C2457%2C2455%2C1132%2C1134%2C2317%2C1807%2C2250%2C2249%2C2248%2C2458%2C2298%2C1769%2C1773%2C1801%2C1227%2C2244%2C1222%2C1104%2C1133%2C1802%2C1735%2C1805%2C1112%2C1728%2C1111%2C1233%2C1127%2C1684%2C1683%2C1671%2C1232%2C1125%2C1014%2C1122%2C1121%2C1124] in [N\/A] *\/\t<\/p>\n<p>I&#8217;ve set up the transient cache for the monthly view. Even so, the month view takes 7 seconds to load 6 seconds of which is just waiting for the query to complete. The rest of the page content loads in about 1 second. Tested on staging and removed plugins, and slow query still exists and speed is not much better on front end.<\/p>\n<p>Any advice would be awesome! <\/p>\n<p>Thanks!<\/p>\n","protected":false},"template":"","class_list":["post-1128207","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Slow Database Query - Slow WordPress Dashboard -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/slow-database-query-slow-wordpress-dashboard\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Slow Database Query - Slow WordPress Dashboard -\" \/>\n<meta property=\"og:description\" content=\"Hi, We are hosting with WP Engine and noticing some really slow Dashboard speeds. When we de-activate The Events Calendar (Pro), the speed improves by 1-2 seconds per page in the Dashboard. We have 995 events (mostly recurring). It takes 10 seconds to load the Event list in the Dashboard. We are getting the following [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/slow-database-query-slow-wordpress-dashboard\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/slow-database-query-slow-wordpress-dashboard\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/slow-database-query-slow-wordpress-dashboard\/\",\"name\":\"Slow Database Query - Slow WordPress Dashboard -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-06-16T23:28:41+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/slow-database-query-slow-wordpress-dashboard\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/slow-database-query-slow-wordpress-dashboard\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/slow-database-query-slow-wordpress-dashboard\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Slow Database Query &#8211; Slow WordPress Dashboard\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Slow Database Query - Slow WordPress Dashboard -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/slow-database-query-slow-wordpress-dashboard\/","og_locale":"en_US","og_type":"article","og_title":"Slow Database Query - Slow WordPress Dashboard -","og_description":"Hi, We are hosting with WP Engine and noticing some really slow Dashboard speeds. When we de-activate The Events Calendar (Pro), the speed improves by 1-2 seconds per page in the Dashboard. We have 995 events (mostly recurring). It takes 10 seconds to load the Event list in the Dashboard. We are getting the following [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/slow-database-query-slow-wordpress-dashboard\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/slow-database-query-slow-wordpress-dashboard\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/slow-database-query-slow-wordpress-dashboard\/","name":"Slow Database Query - Slow WordPress Dashboard -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-06-16T23:28:41+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/slow-database-query-slow-wordpress-dashboard\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/slow-database-query-slow-wordpress-dashboard\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/slow-database-query-slow-wordpress-dashboard\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Slow Database Query &#8211; Slow WordPress Dashboard"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1128207","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1128207\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1128207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}