{"id":135611,"date":"2014-04-17T16:30:18","date_gmt":"2014-04-17T23:30:18","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/query-slowing-down-site-to-700-dyn-caching-not-making-it-better\/"},"modified":"2014-08-15T10:36:39","modified_gmt":"2014-08-15T17:36:39","slug":"query-slowing-down-site-to-700-dyn-caching-not-making-it-better","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-slowing-down-site-to-700-dyn-caching-not-making-it-better\/","title":{"rendered":"query slowing down site to 700%, Dyn. caching not making it better"},"content":{"rendered":"<p>Hello Barry,<br \/>\nI hope you can help us with this:<\/p>\n<p>Your plugin makes our site extremely slow, both in backend and frontend.<br \/>\nA query coming from your plugin is causing this. It takes more than 6 seconds(!) hosted on a premium WP hoster.<br \/>\nSo I see regularly connection breaks from the MYSQL server which is understandable.<br \/>\nNow we did some research on the forum and I see a few things:<\/p>\n<p>&#8211; a code snippet action hook:tribe_allow_large_joins, I see no difference<br \/>\n&#8211; Your replies saying that too many events in small period is not a good thing. We have 136 events. On the homepage are about 10 events listed in<br \/>\na widget about 2 a week. Also event single page itself is just as slow, listing more events.<br \/>\n&#8211; Varnish or memcaching should speed things up I read. We have both, caching is both static and dynamic including memcache, but the effect is<br \/>\nneglectable.  Maybe because number of queries is not the issue here. <\/p>\n<p>To give you an idea of slowness: 7 ( up to 25)  seconds load time with PRO enabled on a server that handles heavy sites normally really well.<br \/>\n1-2 seconds without PRO. All slowness comes from this plugin so it seems.<br \/>\nRecources usage went up  way to quick when trying, so even 7 seconds is not a way to run the site. Far more then heavy plugins like WPML do with lots of queries that run fine on same server conditions. <\/p>\n<p>So pretty much unusable this way.<br \/>\nWhat is causing this? Did we configure anything wrong? How can we fix this? Reinstalling the plugin doesn&#8217;t fix it.I don&#8217;t see any stuff in the<br \/>\nlogger when debug is on, just saying your plugin is initialising each time, no error reporst as far as I can see.<br \/>\nSlowness also exists with other plugins disabled, only woocommerce was enabled. Also happens on Twenty Twelve theme.<br \/>\nIf you need access to a staging site that has this issue as an example I could give you details. If you want a Screenr showing you what the <\/p>\n<p>plugin effect is on speed, let me know.<\/p>\n<p>Regards, J<\/p>\n<p>See slow query info here:<br \/>\nalso posted the issue here,the last comment:<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"6T5ohzAjO1\"><p><a href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/extremely-slow-query\/\">Extremely Slow Query<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Extremely Slow Query&#8221; &#8212; \" src=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/extremely-slow-query\/embed\/#?secret=h0DJotnRlO#?secret=6T5ohzAjO1\" data-secret=\"6T5ohzAjO1\" width=\"580\" height=\"327\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>Slow Database Queries (above 0,05s)<\/p>\n<p>Query\tCaller\tTime<br \/>\nSELECT SQL_CALC_FOUND_ROWS DISTINCT wp_posts.*, wp_postmeta.meta_value as EventStartDate, tribe_event_end_date.meta_value as EventEndDate<br \/>\nFROM wp_posts<br \/>\nINNER JOIN wp_postmeta<br \/>\nON (wp_posts.ID = wp_postmeta.post_id) LEFT 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 = \u2018_EventEndDate\u2019 )<br \/>\nWHERE 1=1<br \/>\nAND wp_posts.post_type = \u2018tribe_events\u2019<br \/>\nAND (wp_posts.post_status = \u2018publish\u2019<br \/>\nOR wp_posts.post_status = \u2018private\u2019)<br \/>\nAND (wp_postmeta.meta_key = \u2018_EventStartDate\u2019 )<br \/>\nAND (wp_postmeta.meta_value &gt;= \u20192014-04-17 00:25:10\u2032<br \/>\nOR (wp_postmeta.meta_value &lt;= \u20192014-04-17 00:25:10\u2032<br \/>\nAND tribe_event_end_date.meta_value &gt;= \u20192014-04-17 00:25:10\u2032 ))<br \/>\nORDER BY DATE(wp_postmeta.meta_value) ASC, TIME(wp_postmeta.meta_value) ASC<br \/>\nLIMIT 0, 7\tWP_Query-&gt;get_posts+\t6,2<\/p>\n","protected":false},"template":"","class_list":["post-135611","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>query slowing down site to 700%, Dyn. caching not making it better -<\/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\/query-slowing-down-site-to-700-dyn-caching-not-making-it-better\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"query slowing down site to 700%, Dyn. caching not making it better -\" \/>\n<meta property=\"og:description\" content=\"Hello Barry, I hope you can help us with this: Your plugin makes our site extremely slow, both in backend and frontend. A query coming from your plugin is causing this. It takes more than 6 seconds(!) hosted on a premium WP hoster. So I see regularly connection breaks from the MYSQL server which is [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-slowing-down-site-to-700-dyn-caching-not-making-it-better\/\" \/>\n<meta property=\"article:modified_time\" content=\"2014-08-15T17:36:39+00:00\" \/>\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=\"3 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\/query-slowing-down-site-to-700-dyn-caching-not-making-it-better\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-slowing-down-site-to-700-dyn-caching-not-making-it-better\/\",\"name\":\"query slowing down site to 700%, Dyn. caching not making it better -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2014-04-17T23:30:18+00:00\",\"dateModified\":\"2014-08-15T17:36:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-slowing-down-site-to-700-dyn-caching-not-making-it-better\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-slowing-down-site-to-700-dyn-caching-not-making-it-better\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-slowing-down-site-to-700-dyn-caching-not-making-it-better\/#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\":\"query slowing down site to 700%, Dyn. caching not making it better\"}]},{\"@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":"query slowing down site to 700%, Dyn. caching not making it better -","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\/query-slowing-down-site-to-700-dyn-caching-not-making-it-better\/","og_locale":"en_US","og_type":"article","og_title":"query slowing down site to 700%, Dyn. caching not making it better -","og_description":"Hello Barry, I hope you can help us with this: Your plugin makes our site extremely slow, both in backend and frontend. A query coming from your plugin is causing this. It takes more than 6 seconds(!) hosted on a premium WP hoster. So I see regularly connection breaks from the MYSQL server which is [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-slowing-down-site-to-700-dyn-caching-not-making-it-better\/","article_modified_time":"2014-08-15T17:36:39+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-slowing-down-site-to-700-dyn-caching-not-making-it-better\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-slowing-down-site-to-700-dyn-caching-not-making-it-better\/","name":"query slowing down site to 700%, Dyn. caching not making it better -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2014-04-17T23:30:18+00:00","dateModified":"2014-08-15T17:36:39+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-slowing-down-site-to-700-dyn-caching-not-making-it-better\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-slowing-down-site-to-700-dyn-caching-not-making-it-better\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-slowing-down-site-to-700-dyn-caching-not-making-it-better\/#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":"query slowing down site to 700%, Dyn. caching not making it better"}]},{"@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\/135611","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\/135611\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=135611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}