{"id":1016747,"date":"2015-10-21T15:26:26","date_gmt":"2015-10-21T22:26:26","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/slow-queries\/"},"modified":"2015-11-06T06:05:03","modified_gmt":"2015-11-06T14:05:03","slug":"slow-queries","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/slow-queries\/","title":{"rendered":"Slow Queries"},"content":{"rendered":"<p>Seeing just a massive amount of Slow Queries with this plugin&#8230; See from my mySQL slow-query logs below:<\/p>\n<pre><code># Time: 151021 18:01:29\n# Query_time: 10.045758  Lock_time: 0.000102 Rows_sent: 3  Rows_examined: 1697540\nSET timestamp=1445464889;\nSELECT  DISTINCT wp__posts.*, IF (wp__posts.post_type = &#039;tribe_events&#039;, wp__postmeta.meta_value, wp__posts.post_date) AS post_date FROM wp__posts  INNER JOIN wp__term_relationships ON (wp__posts.ID = wp__term_relationships.object_id) LEFT JOIN wp__postmeta as wp__postmeta on wp__posts.ID = wp__postmeta.post_id AND wp__postmeta.meta_key = &#039;_EventStartDate&#039; WHERE 1=1   AND wp__posts.ID NOT IN (48386) AND ( \n  wp__term_relationships.term_taxonomy_id IN (2,8,200,255,787,1316,3125,10434)\n) AND wp__posts.post_type IN (&#039;post&#039;, &#039;tribe_events&#039;) AND (wp__posts.post_status = &#039;publish&#039;) AND wp__posts.post_status != &#039;private&#039;  GROUP BY wp__posts.ID ORDER BY post_date DESC LIMIT 0, 3;<\/code><\/pre>\n<p>I&#8217;ve changed my prefix to protect the innocent etc&#8230; These are just over and over again (every minute or every 5 minutes). It is (sometimes) a high-traffic site, but obviously there&#8217;s a bottleneck where it comes to this plugin. <\/p>\n<p>We&#8217;re running 8 Cores and 8 GB of RAM on a Centos VPS, php 5.5, nginx&#8230; The site\/server is geared towards handling a lot of traffic. All my slow queries has tribe_events&#8230; Any suggestions?<\/p>\n","protected":false},"template":"","class_list":["post-1016747","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 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\/slow-queries\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Slow Queries -\" \/>\n<meta property=\"og:description\" content=\"Seeing just a massive amount of Slow Queries with this plugin&#8230; See from my mySQL slow-query logs below: # Time: 151021 18:01:29 # Query_time: 10.045758 Lock_time: 0.000102 Rows_sent: 3 Rows_examined: 1697540 SET timestamp=1445464889; SELECT DISTINCT wp__posts.*, IF (wp__posts.post_type = &#039;tribe_events&#039;, wp__postmeta.meta_value, wp__posts.post_date) AS post_date FROM wp__posts INNER JOIN wp__term_relationships ON (wp__posts.ID = wp__term_relationships.object_id) LEFT JOIN [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/slow-queries\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-11-06T14:05:03+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\/slow-queries\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/slow-queries\/\",\"name\":\"Slow Queries -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-10-21T22:26:26+00:00\",\"dateModified\":\"2015-11-06T14:05:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/slow-queries\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/slow-queries\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/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\":\"Community Events\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Slow 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":"Slow 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\/slow-queries\/","og_locale":"en_US","og_type":"article","og_title":"Slow Queries -","og_description":"Seeing just a massive amount of Slow Queries with this plugin&#8230; See from my mySQL slow-query logs below: # Time: 151021 18:01:29 # Query_time: 10.045758 Lock_time: 0.000102 Rows_sent: 3 Rows_examined: 1697540 SET timestamp=1445464889; SELECT DISTINCT wp__posts.*, IF (wp__posts.post_type = &#039;tribe_events&#039;, wp__postmeta.meta_value, wp__posts.post_date) AS post_date FROM wp__posts INNER JOIN wp__term_relationships ON (wp__posts.ID = wp__term_relationships.object_id) LEFT JOIN [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/slow-queries\/","article_modified_time":"2015-11-06T14:05:03+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\/slow-queries\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/slow-queries\/","name":"Slow Queries -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-10-21T22:26:26+00:00","dateModified":"2015-11-06T14:05:03+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/slow-queries\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/slow-queries\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/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":"Community Events","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/"},{"@type":"ListItem","position":5,"name":"Slow 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\/1016747","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\/1016747\/revisions"}],"predecessor-version":[{"id":1016946,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1016747\/revisions\/1016946"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1016747"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}