{"id":1288679,"date":"2017-05-24T18:22:07","date_gmt":"2017-05-25T01:22:07","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/severe-query-performance-issues-with-new-meta-chunker\/"},"modified":"2017-05-26T08:58:00","modified_gmt":"2017-05-26T15:58:00","slug":"severe-query-performance-issues-with-new-meta-chunker","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/severe-query-performance-issues-with-new-meta-chunker\/","title":{"rendered":"Severe query performance issues with new meta chunker"},"content":{"rendered":"<p>In 4.5.2, you introduced a new class called Tribe_Meta_Chunker. We are having serious query performance issues with this update on a high traffic site. We&#8217;ve had to revert back to 4.5.1 after only 5 minutes live on our site. Here are my questions.<\/p>\n<p>1) Where is the supposed to be used, and why is it priming a cache on every page load?<br \/>\n2) Where is this mentioned in the changelog? The changelog seemed to be innocuous, but this is a significant change that isn&#8217;t mentioned anywhere. I do rely on reviewing changelogs before I roll code on to our production site and need to be able to rely on this sort of stuff being in there.<\/p>\n<p>The query that is running on each page load is this:<\/p>\n<p>SELECT post_id, meta_key<br \/>\nFROM wp_postmeta<br \/>\nWHERE meta_key LIKE &#8216;_tribe_chunker_%&#8217;<br \/>\nAND meta_key NOT LIKE &#8216;_tribe_chunker_%_chunk&#8217;<\/p>\n<p>Our database returns 0 records for this query, yet it takes 0.4 &#8211; 1.0 sec to return an answer for a poorly-written MySQL query on a larger database like ours. (we have about 1.5M rows in our postmeta table) Our database is a dedicated box and is not typically under any measurable load until I activate this update.<\/p>\n","protected":false},"template":"","class_list":["post-1288679","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>Severe query performance issues with new meta chunker -<\/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\/severe-query-performance-issues-with-new-meta-chunker\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Severe query performance issues with new meta chunker -\" \/>\n<meta property=\"og:description\" content=\"In 4.5.2, you introduced a new class called Tribe_Meta_Chunker. We are having serious query performance issues with this update on a high traffic site. We&#8217;ve had to revert back to 4.5.1 after only 5 minutes live on our site. Here are my questions. 1) Where is the supposed to be used, and why is it [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/severe-query-performance-issues-with-new-meta-chunker\/\" \/>\n<meta property=\"article:modified_time\" content=\"2017-05-26T15:58:00+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\/severe-query-performance-issues-with-new-meta-chunker\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/severe-query-performance-issues-with-new-meta-chunker\/\",\"name\":\"Severe query performance issues with new meta chunker -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-05-25T01:22:07+00:00\",\"dateModified\":\"2017-05-26T15:58:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/severe-query-performance-issues-with-new-meta-chunker\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/severe-query-performance-issues-with-new-meta-chunker\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/severe-query-performance-issues-with-new-meta-chunker\/#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\":\"Severe query performance issues with new meta chunker\"}]},{\"@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":"Severe query performance issues with new meta chunker -","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\/severe-query-performance-issues-with-new-meta-chunker\/","og_locale":"en_US","og_type":"article","og_title":"Severe query performance issues with new meta chunker -","og_description":"In 4.5.2, you introduced a new class called Tribe_Meta_Chunker. We are having serious query performance issues with this update on a high traffic site. We&#8217;ve had to revert back to 4.5.1 after only 5 minutes live on our site. Here are my questions. 1) Where is the supposed to be used, and why is it [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/severe-query-performance-issues-with-new-meta-chunker\/","article_modified_time":"2017-05-26T15:58:00+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\/severe-query-performance-issues-with-new-meta-chunker\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/severe-query-performance-issues-with-new-meta-chunker\/","name":"Severe query performance issues with new meta chunker -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-05-25T01:22:07+00:00","dateModified":"2017-05-26T15:58:00+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/severe-query-performance-issues-with-new-meta-chunker\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/severe-query-performance-issues-with-new-meta-chunker\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/severe-query-performance-issues-with-new-meta-chunker\/#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":"Severe query performance issues with new meta chunker"}]},{"@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\/1288679","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\/1288679\/revisions"}],"predecessor-version":[{"id":1289448,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1288679\/revisions\/1289448"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1288679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}