{"id":1012138,"date":"2015-10-06T23:40:34","date_gmt":"2015-10-07T06:40:34","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/generating-a-lot-of-slow-queries\/"},"modified":"2015-10-09T08:02:33","modified_gmt":"2015-10-09T15:02:33","slug":"generating-a-lot-of-slow-queries","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/generating-a-lot-of-slow-queries\/","title":{"rendered":"&quot;Generating a lot of slow queries&quot;"},"content":{"rendered":"<p>After having set our website with events-calendar and events-calendar Pro, we published our website online: laguiago.com<br \/>\nDays after we received an email from our host provider talking about host abuse on the part of our database website:<\/p>\n<p>&#8220;Your database laguiagogfburgos installed on mysql55-16.bdb<br \/>\nis generating a lot of slow queries, slowing down the MySQL<br \/>\nserver and impacting other customers.<\/p>\n<p>A lot of this kind of queries have been found in our logs:<br \/>\n# Time: 151001 7:16:22<br \/>\nRows_examined: 516811<br \/>\nSET timestamp=1443676582;<br \/>\nSELECT SQL_CALC_FOUND_ROWS DISTINCT wp_posts.*,<br \/>\nMIN(wp_postmeta.meta_value) as EventStartDate,<br \/>\ntribe_event_end_date.meta_value as EventEndDate FROM<br \/>\nwp_posts  LEFT JOIN wp_postmeta ON ( wp_posts.ID =<br \/>\nwp_postmeta.post_id ) LEFT JOIN wp_postmeta AS mt1 ON (<br \/>\nwp_posts.ID = mt1.post_id )  LEFT JOIN wp_postmeta AS mt2<br \/>\nON (wp_posts.ID = mt2.post_id AND mt2.meta_key =<br \/>\n&#8216;_EventHideFromUpcoming&#8217; ) LEFT JOIN wp_postmeta as<br \/>\ntribe_event_end_date ON ( wp_posts.ID =<br \/>\ntribe_event_end_date.post_id AND<br \/>\ntribe_event_end_date.meta_key = &#8216;_EventEndDate&#8217; )  WHERE<br \/>\n1=1  AND wp_posts.ID NOT IN (400137) AND (<br \/>\n  wp_postmeta.meta_key = &#8216;_EventStartDate&#8217;<br \/>\n  AND<br \/>\n  ( mt1.meta_key = &#8216;_EventStartDate&#8217; AND<br \/>\nCAST(mt1.meta_value AS DATETIME) &lt; &#8216;2015-10-03 08:00:00&#8217; )<br \/>\n  AND<br \/>\n  mt2.post_id IS NULL<br \/>\n) AND wp_posts.post_type = &#8216;tribe_events&#8217; AND<br \/>\n(wp_posts.post_status = &#8216;publish&#8217;) GROUP BY wp_posts.ID<br \/>\nORDER BY EventStartDate DESC LIMIT 0, 1;&#8221;<\/p>\n<p>What could be happening??? When are these processes launched?<br \/>\nAny solution? We need it fixed urgently, because our host is threatening us with closing our database&#8230;<\/p>\n<p>Thanks in advance.<\/p>\n","protected":false},"template":"","class_list":["post-1012138","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>&quot;Generating a lot of slow queries&quot; -<\/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\/generating-a-lot-of-slow-queries\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"&quot;Generating a lot of slow queries&quot; -\" \/>\n<meta property=\"og:description\" content=\"After having set our website with events-calendar and events-calendar Pro, we published our website online: laguiago.com Days after we received an email from our host provider talking about host abuse on the part of our database website: &#8220;Your database laguiagogfburgos installed on mysql55-16.bdb is generating a lot of slow queries, slowing down the MySQL server [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/generating-a-lot-of-slow-queries\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-10-09T15:02:33+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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/generating-a-lot-of-slow-queries\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/generating-a-lot-of-slow-queries\/\",\"name\":\"&quot;Generating a lot of slow queries&quot; -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-10-07T06:40:34+00:00\",\"dateModified\":\"2015-10-09T15:02:33+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/generating-a-lot-of-slow-queries\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/generating-a-lot-of-slow-queries\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/generating-a-lot-of-slow-queries\/#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\":\"&quot;Generating a lot of slow queries&quot;\"}]},{\"@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":"&quot;Generating a lot of slow queries&quot; -","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\/generating-a-lot-of-slow-queries\/","og_locale":"en_US","og_type":"article","og_title":"&quot;Generating a lot of slow queries&quot; -","og_description":"After having set our website with events-calendar and events-calendar Pro, we published our website online: laguiago.com Days after we received an email from our host provider talking about host abuse on the part of our database website: &#8220;Your database laguiagogfburgos installed on mysql55-16.bdb is generating a lot of slow queries, slowing down the MySQL server [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/generating-a-lot-of-slow-queries\/","article_modified_time":"2015-10-09T15:02:33+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/generating-a-lot-of-slow-queries\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/generating-a-lot-of-slow-queries\/","name":"&quot;Generating a lot of slow queries&quot; -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-10-07T06:40:34+00:00","dateModified":"2015-10-09T15:02:33+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/generating-a-lot-of-slow-queries\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/generating-a-lot-of-slow-queries\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/generating-a-lot-of-slow-queries\/#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":"&quot;Generating a lot of slow queries&quot;"}]},{"@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\/1012138","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":2,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1012138\/revisions"}],"predecessor-version":[{"id":1013150,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1012138\/revisions\/1013150"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1012138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}