{"id":1322794,"date":"2017-07-18T09:57:20","date_gmt":"2017-07-18T16:57:20","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/memories-queries-an-events\/"},"modified":"2017-07-18T09:57:20","modified_gmt":"2017-07-18T16:57:20","slug":"memories-queries-an-events","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/memories-queries-an-events\/","title":{"rendered":"Memories, Queries, an events"},"content":{"rendered":"<p>We&#8217;re really struggling with slow calendar and events performance.  It&#8217;s really having a negative impact on our business.<\/p>\n<p>The site has about 2000 published events.<\/p>\n<p>We&#8217;ve done some testing with Query Monitor and found the following results, some of which seem extraordinary.<\/p>\n<p>If you&#8217;re not familiar with Query Monitor, it provides a toolbar at the top of the page with the following summary information:  time to load the page, peak memory, time spent talking to the database, number of database queries required by the page.<\/p>\n<p>Attached are several screenshots, listed below with comments.  The screenshots were taken with a logged in user, so are un-cached pages <\/p>\n<p>FE-HomePage &#8211; this shows the home page.  It took about half a second to load and required 51 queries.  Seems reasonable.<\/p>\n<p>FE-KayakPage &#8211; This is the Kayaking &amp; Canoeing page.  About .6 seconds to load, and 63 queries.  Seems reasonable.<\/p>\n<p>FE-MonthView &#8211; This is the month view of the calendar.  It took almost 2 minutes to load, had peak memory usage of 370MB, and required a whopping 10,000 queries to generate. Seems insane.  <\/p>\n<p>Is it  related to https:\/\/theeventscalendar.com\/support\/forums\/topic\/troubleshooting-slow-calendar-other-category-events-in-source\/ or different?<\/p>\n<p>FE-WeekView &#8211; This is the week view of the calendar.  It loads in about 2.5 seconds and requires 195 database queries.  Seems reasonable.<\/p>\n<p>BE-Home Page &#8211; 1.5 seconds to load, about 200 queries<\/p>\n<p>BE-Orders &#8211; This is the woocommerce orders page, its set to show 20 orders.  It loaded in about 2 seconds, and had just under 500 queries.  It&#8217;s about on par with other ecommerce sites we manage.<\/p>\n<p>BE-Events &#8211; This is the events page.  It&#8217;s set to show 20 events.  It took about 7 seconds to load and required 1000 queries. This seems high &#8211; why almost 50 queries for every event?<\/p>\n<p>Please confirm if this is expected behaviour &#8211; the slow loads in the front and back end, or there is an issue with the calendar\/events plugins.<\/p>\n","protected":false},"template":"","class_list":["post-1322794","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>Memories, Queries, an events -<\/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\/memories-queries-an-events\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Memories, Queries, an events -\" \/>\n<meta property=\"og:description\" content=\"We&#8217;re really struggling with slow calendar and events performance. It&#8217;s really having a negative impact on our business. The site has about 2000 published events. We&#8217;ve done some testing with Query Monitor and found the following results, some of which seem extraordinary. If you&#8217;re not familiar with Query Monitor, it provides a toolbar at the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/memories-queries-an-events\/\" \/>\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\/memories-queries-an-events\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/memories-queries-an-events\/\",\"name\":\"Memories, Queries, an events -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-07-18T16:57:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/memories-queries-an-events\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/memories-queries-an-events\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/memories-queries-an-events\/#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\":\"Memories, Queries, an events\"}]},{\"@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":"Memories, Queries, an events -","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\/memories-queries-an-events\/","og_locale":"en_US","og_type":"article","og_title":"Memories, Queries, an events -","og_description":"We&#8217;re really struggling with slow calendar and events performance. It&#8217;s really having a negative impact on our business. The site has about 2000 published events. We&#8217;ve done some testing with Query Monitor and found the following results, some of which seem extraordinary. If you&#8217;re not familiar with Query Monitor, it provides a toolbar at the [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/memories-queries-an-events\/","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\/memories-queries-an-events\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/memories-queries-an-events\/","name":"Memories, Queries, an events -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-07-18T16:57:20+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/memories-queries-an-events\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/memories-queries-an-events\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/memories-queries-an-events\/#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":"Memories, Queries, an events"}]},{"@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\/1322794","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\/1322794\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1322794"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}