{"id":1133459,"date":"2016-06-29T08:59:33","date_gmt":"2016-06-29T15:59:33","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/continuously-replicating-re-occuring-events-causing-major-server-issues\/"},"modified":"2016-06-29T08:59:33","modified_gmt":"2016-06-29T15:59:33","slug":"continuously-replicating-re-occuring-events-causing-major-server-issues","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/continuously-replicating-re-occuring-events-causing-major-server-issues\/","title":{"rendered":"Continuously Replicating Re-Occuring Events Causing Major Server Issues"},"content":{"rendered":"<p>I reported this the other day in another active ticket for a different site and wasn&#8217;t given any assistance on it so I am now submitting it as it&#8217;s own ticket, so this needs high priority response.  <\/p>\n<p>My calendar had under 250 events on it, most of which were 2 weekly reoccurring events (Monday night hangouts and Wednesday Webinars), but after updating the Event Calendar Pro plugin a week ago those 2 reoccurring events started replicating at an alarming rate and grew to over 60,000!  This is causing my server resources to spike considerably and is affecting the performance of this site as well as several others I have running on the same VPS.  I had GoDaddy\u2019s Fully Managed Server Support Team run a Slow Query Test they ran determined the Event Calendar Pro plugin is 100% the cause of the issues my VPS (see script provided below).<\/p>\n<p>Trying to be proactive, I just deleted all 60,000+ entries from the WP_Posts and WP_Posts_Meta tables and reinstalled the Event Calendar and Event Calendar Pro plugins and started adding the calendar items back in with one test of the weekly reoccurring event for Monday Hangouts (this time I limited it to end at the end of 2016) and so far it is not replicating.  So my questions are:<br \/>\n1) why did this happen previously?<br \/>\n2) if it does start replicating again, how long would it take for that to happen\/start again<br \/>\n3) what do we do if it happens again?<\/p>\n<p>Here&#8217;s the script that was identified as causing the problems previously:<\/p>\n<p>SELECT SQL_CALC_FOUND_ROWS DISTINCT wp_posts.*, MIN(wp_postmeta.meta_value) as EventStartDate, MIN(tribe_event_end_date.meta_value) as EventEndDate FROM wp_posts 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 = \u2018_EventEndDate\u2019 ) WHERE 1=1 AND ( wp_posts.post_parent = 12910 OR wp_posts.ID = 12910 ) AND (<br \/>\nwp_postmeta.meta_key = \u2018_EventStartDate\u2019<br \/>\n) AND wp_posts.post_type = \u2018tribe_events\u2019 AND ((wp_posts.post_status = \u2018publish\u2019)) AND (wp_postmeta.meta_value &gt;= \u20182016-06-27 14:35:05\u2019 OR (wp_postmeta.meta_value &lt;= \u20182016-06-27 14:35:05\u2019 AND tribe_event_end_date.meta_value &gt;= \u20182016-06-27 14:35:05\u2019 )) GROUP BY wp_posts.ID ORDER BY EventStartDate ASC, wp_posts.post_date ASC LIMIT 27120, 10;<\/p>\n","protected":false},"template":"","class_list":["post-1133459","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>Continuously Replicating Re-Occuring Events Causing Major Server Issues -<\/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\/continuously-replicating-re-occuring-events-causing-major-server-issues\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Continuously Replicating Re-Occuring Events Causing Major Server Issues -\" \/>\n<meta property=\"og:description\" content=\"I reported this the other day in another active ticket for a different site and wasn&#8217;t given any assistance on it so I am now submitting it as it&#8217;s own ticket, so this needs high priority response. My calendar had under 250 events on it, most of which were 2 weekly reoccurring events (Monday night [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/continuously-replicating-re-occuring-events-causing-major-server-issues\/\" \/>\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\/continuously-replicating-re-occuring-events-causing-major-server-issues\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/continuously-replicating-re-occuring-events-causing-major-server-issues\/\",\"name\":\"Continuously Replicating Re-Occuring Events Causing Major Server Issues -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-06-29T15:59:33+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/continuously-replicating-re-occuring-events-causing-major-server-issues\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/continuously-replicating-re-occuring-events-causing-major-server-issues\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/continuously-replicating-re-occuring-events-causing-major-server-issues\/#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\":\"Continuously Replicating Re-Occuring Events Causing Major Server Issues\"}]},{\"@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":"Continuously Replicating Re-Occuring Events Causing Major Server Issues -","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\/continuously-replicating-re-occuring-events-causing-major-server-issues\/","og_locale":"en_US","og_type":"article","og_title":"Continuously Replicating Re-Occuring Events Causing Major Server Issues -","og_description":"I reported this the other day in another active ticket for a different site and wasn&#8217;t given any assistance on it so I am now submitting it as it&#8217;s own ticket, so this needs high priority response. My calendar had under 250 events on it, most of which were 2 weekly reoccurring events (Monday night [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/continuously-replicating-re-occuring-events-causing-major-server-issues\/","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\/continuously-replicating-re-occuring-events-causing-major-server-issues\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/continuously-replicating-re-occuring-events-causing-major-server-issues\/","name":"Continuously Replicating Re-Occuring Events Causing Major Server Issues -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-06-29T15:59:33+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/continuously-replicating-re-occuring-events-causing-major-server-issues\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/continuously-replicating-re-occuring-events-causing-major-server-issues\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/continuously-replicating-re-occuring-events-causing-major-server-issues\/#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":"Continuously Replicating Re-Occuring Events Causing Major Server Issues"}]},{"@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\/1133459","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\/1133459\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1133459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}