{"id":1014820,"date":"2015-10-15T05:52:56","date_gmt":"2015-10-15T12:52:56","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mysqlservier-issues-related-to-slowlarge-event-queries\/"},"modified":"2015-10-16T07:05:26","modified_gmt":"2015-10-16T14:05:26","slug":"mysqlservier-issues-related-to-slowlarge-event-queries","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mysqlservier-issues-related-to-slowlarge-event-queries\/","title":{"rendered":"MySQL\/Servier Issues Related to Slow\/Large Event Queries"},"content":{"rendered":"<p>I&#8217;m seeing these errors every ten minutes or so in my php-error log&#8230; We&#8217;re running PHP 5.5, Nginx\/FastCGI, MySQL 5.5, 4000+ Events<\/p>\n<pre><code>[15-Oct-2015 08:36:15 America\/New_York] WordPress database error Incorrect key file for table &#039;\/tmp\/#sql_912_26.MYI&#039;; try to repair it for query SELECT  DISTINCT bf_wp_posts.*, IF (bf_wp_posts.post_type = &#039;tribe_events&#039;, bf_wp_postmeta.meta_value, bf_wp_posts.post_date) AS post_date FROM bf_wp_posts  INNER JOIN bf_wp_term_relationships ON (bf_wp_posts.ID = bf_wp_term_relationships.object_id) LEFT JOIN bf_wp_postmeta as bf_wp_postmeta on bf_wp_posts.ID = bf_wp_postmeta.post_id AND bf_wp_postmeta.meta_key = &#039;_EventStartDate&#039; WHERE 1=1   AND bf_wp_posts.ID NOT IN (40393) AND ( \n  bf_wp_term_relationships.term_taxonomy_id IN (2,85,468,476,803,1520,2417,6433)\n) AND bf_wp_posts.post_type IN (&#039;post&#039;, &#039;tribe_events&#039;) AND (bf_wp_posts.post_status = &#039;publish&#039;) AND bf_wp_posts.post_status != &#039;private&#039;  GROUP BY bf_wp_posts.ID ORDER BY post_date DESC LIMIT 0, 3 made by require(&#039;wp-blog-header.php&#039;), require_once(&#039;wp-includes\/template-loader.php&#039;), include(&#039;\/themes\/wwaytv3\/single.php&#039;), WP_Query-&gt;__construct, WP_Query-&gt;query, WP_Query-&gt;get_posts<\/code><\/pre>\n<p>I can&#8217;t figure out what&#8217;s causing it but Events are showing up in every query that triggers\/is associated with the error and it&#8217;s killing our server.<\/p>\n<p>I can&#8217;t deactivate the plugin as it&#8217;s live\/in production and these issues didn&#8217;t crop up in testing. I&#8217;m sure it could be a conflict with other code or possibly a bad mySQL config. Anyone? Help!<\/p>\n","protected":false},"template":"","class_list":["post-1014820","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>MySQL\/Servier Issues Related to Slow\/Large Event Queries -<\/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\/mysqlservier-issues-related-to-slowlarge-event-queries\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MySQL\/Servier Issues Related to Slow\/Large Event Queries -\" \/>\n<meta property=\"og:description\" content=\"I&#8217;m seeing these errors every ten minutes or so in my php-error log&#8230; We&#8217;re running PHP 5.5, Nginx\/FastCGI, MySQL 5.5, 4000+ Events [15-Oct-2015 08:36:15 America\/New_York] WordPress database error Incorrect key file for table &#039;\/tmp\/#sql_912_26.MYI&#039;; try to repair it for query SELECT DISTINCT bf_wp_posts.*, IF (bf_wp_posts.post_type = &#039;tribe_events&#039;, bf_wp_postmeta.meta_value, bf_wp_posts.post_date) AS post_date FROM bf_wp_posts INNER JOIN [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mysqlservier-issues-related-to-slowlarge-event-queries\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-10-16T14:05:26+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\/mysqlservier-issues-related-to-slowlarge-event-queries\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mysqlservier-issues-related-to-slowlarge-event-queries\/\",\"name\":\"MySQL\/Servier Issues Related to Slow\/Large Event Queries -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-10-15T12:52:56+00:00\",\"dateModified\":\"2015-10-16T14:05:26+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mysqlservier-issues-related-to-slowlarge-event-queries\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mysqlservier-issues-related-to-slowlarge-event-queries\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mysqlservier-issues-related-to-slowlarge-event-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\":\"Community Events\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"MySQL\/Servier Issues Related to Slow\/Large Event Queries\"}]},{\"@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":"MySQL\/Servier Issues Related to Slow\/Large Event Queries -","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\/mysqlservier-issues-related-to-slowlarge-event-queries\/","og_locale":"en_US","og_type":"article","og_title":"MySQL\/Servier Issues Related to Slow\/Large Event Queries -","og_description":"I&#8217;m seeing these errors every ten minutes or so in my php-error log&#8230; We&#8217;re running PHP 5.5, Nginx\/FastCGI, MySQL 5.5, 4000+ Events [15-Oct-2015 08:36:15 America\/New_York] WordPress database error Incorrect key file for table &#039;\/tmp\/#sql_912_26.MYI&#039;; try to repair it for query SELECT DISTINCT bf_wp_posts.*, IF (bf_wp_posts.post_type = &#039;tribe_events&#039;, bf_wp_postmeta.meta_value, bf_wp_posts.post_date) AS post_date FROM bf_wp_posts INNER JOIN [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mysqlservier-issues-related-to-slowlarge-event-queries\/","article_modified_time":"2015-10-16T14:05:26+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\/mysqlservier-issues-related-to-slowlarge-event-queries\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mysqlservier-issues-related-to-slowlarge-event-queries\/","name":"MySQL\/Servier Issues Related to Slow\/Large Event Queries -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-10-15T12:52:56+00:00","dateModified":"2015-10-16T14:05:26+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mysqlservier-issues-related-to-slowlarge-event-queries\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/mysqlservier-issues-related-to-slowlarge-event-queries\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/mysqlservier-issues-related-to-slowlarge-event-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":"Community Events","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/"},{"@type":"ListItem","position":5,"name":"MySQL\/Servier Issues Related to Slow\/Large Event Queries"}]},{"@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\/1014820","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":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1014820\/revisions"}],"predecessor-version":[{"id":1014908,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1014820\/revisions\/1014908"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1014820"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}