{"id":1266308,"date":"2017-04-06T16:23:48","date_gmt":"2017-04-06T23:23:48","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/performance-issues-3\/"},"modified":"2017-04-11T14:18:38","modified_gmt":"2017-04-11T21:18:38","slug":"performance-issues-3","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/performance-issues-3\/","title":{"rendered":"Performance Issues"},"content":{"rendered":"<p>I was asked to start a new thread with this information instead of including it in the thread it was originally posted in.  I was told I could copy\/paste it into this one.  I&#8217;m actually not sure if this issue is occurring in code for TEC, TEC-Pro, or EA but here is the information:<\/p>\n<p>I am adding this information I have just received my hosting company as well. I\u2019m not sure what category this new information fits into, but I have been having a lot of performance issues with my site that I thought had to do with hosting. They have spent the last week working with me and while I authorized upgrading plans by two levels, during the process of working on that request they stopped and sent this email information because of a problem that has to do with TEC. I\u2019m copying and pasting from their email here (in entirety)<\/p>\n<p>Hello, I ran a check on the calendar using Query Monitor. It\u2019s flagging a broken query from the plugin. The query is: SELECT DISTINCT 859_posts.*, MIN(859_postmeta.meta_value) as EventStartDate, MIN(tribe_event_end_date.meta_value) as EventEndDate FROM 859_posts LEFT JOIN 859_postmeta as tribe_event_end_date ON ( 859_posts.ID = tribe_event_end_date.post_id AND tribe_event_end_date.meta_key = \u2018_EventEndDate\u2019 ) WHERE 1=1 AND 859_posts.post_type = \u2018tribe_events\u2019 AND (859_posts.post_status = \u2018publish\u2019 OR 859_posts.post_status = \u2018tribe-ea-success\u2019 OR 859_posts.post_status = \u2018tribe-ea-failed\u2019 OR 859_posts.post_status = \u2018tribe-ea-schedule\u2019 OR 859_posts.post_status = \u2018tribe-ea-pending\u2019 OR 859_posts.post_status = \u2018tribe-ea-draft\u2019 OR 859_posts.post_status = \u2018private\u2019) ORDER BY EventStartDate DESC, 859_posts.post_date DESC LIMIT 0, 1 The complaint from the query is: Unknown column \u2018859_postmeta.meta_value\u2019 in \u2018field list\u2019 I believe the problem is because the table name is being joined in as a different name, so instead of \u201c859_postmeta.meta_value\u201d it should be \u201ctribe_event_end_date.meta_value\u201d. This isn\u2019t something you can fix. It\u2019s a problem in the plugin code itself. It could also affect the performance of the page because MySQL has take the time to check and then fail that query. There are two other factors that are affecting performance, one more so than the other. The first is the number of events. The more events, the more data that has to be queried. This is causing for a few slow queries on the page. A recommendation I found on the Modern Tribe forum was to upgrade the hosting account. The person answering assumed the account was on shared hosting, which yours is. In your case, you\u2019re on a plan that has a low number of resources. However, I\u2019m not completely convinced that the hosting plan is the problem in your case. To be sure, I\u2019ve temporarily switched you to the next plan up that provides a higher allotment of various system resources. I\u2019m going to leave it like this for a few days so you can run your site and see if you\u2019re still having problems. From my perspective, the page loads in anywhere from 7-13 seconds, which would be slow for any other page but in your case you have 3400 queries running to make up the data on the calendar page. For the issue with the plugin, I suggest contacting Modern Tribe so they can check into the query and get that corrected. I suspect that it\u2019s affecting everyone who uses the plugin but it may not have been reported yet. I\u2019m going to leave your ticket on hold for now so I can check back in a day or two.<\/p>\n<p>Clearly, this needs to be addressed immediately and not be waiting for a maintenance release down the road. If it is affecting other sites like it is affecting me, it is bad news!!<\/p>\n<p>In the previous thread I was asked what screen this was occurring on.  I can&#8217;t answer that question since it was the hosting company that found this while trying to fix issues they thought were related to hosting.  I would assume you are capable of running the same tests they mention above and finding the same information since they&#8217;ve given the full details.<\/p>\n","protected":false},"template":"","class_list":["post-1266308","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>Performance 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\/performance-issues-3\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Performance Issues -\" \/>\n<meta property=\"og:description\" content=\"I was asked to start a new thread with this information instead of including it in the thread it was originally posted in. I was told I could copy\/paste it into this one. I&#8217;m actually not sure if this issue is occurring in code for TEC, TEC-Pro, or EA but here is the information: I [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/performance-issues-3\/\" \/>\n<meta property=\"article:modified_time\" content=\"2017-04-11T21:18:38+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=\"4 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\/performance-issues-3\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/performance-issues-3\/\",\"name\":\"Performance Issues -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-04-06T23:23:48+00:00\",\"dateModified\":\"2017-04-11T21:18:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/performance-issues-3\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/performance-issues-3\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/performance-issues-3\/#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\":\"Event Aggregator\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/event-aggregator\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Performance 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":"Performance 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\/performance-issues-3\/","og_locale":"en_US","og_type":"article","og_title":"Performance Issues -","og_description":"I was asked to start a new thread with this information instead of including it in the thread it was originally posted in. I was told I could copy\/paste it into this one. I&#8217;m actually not sure if this issue is occurring in code for TEC, TEC-Pro, or EA but here is the information: I [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/performance-issues-3\/","article_modified_time":"2017-04-11T21:18:38+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/performance-issues-3\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/performance-issues-3\/","name":"Performance Issues -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-04-06T23:23:48+00:00","dateModified":"2017-04-11T21:18:38+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/performance-issues-3\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/performance-issues-3\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/performance-issues-3\/#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":"Event Aggregator","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/event-aggregator\/"},{"@type":"ListItem","position":5,"name":"Performance 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\/1266308","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\/1266308\/revisions"}],"predecessor-version":[{"id":1268525,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1266308\/revisions\/1268525"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1266308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}