Support

Home Forums Event Espresso Premium Single event display is exceedingly slow

Single event display is exceedingly slow

Posted: January 17, 2018 at 1:22 am

Viewing 14 reply threads


Lawrence Seltzer

January 17, 2018 at 1:22 am

The page https://www.gatewaysonline.org/events/new-generation-of-leaders-brownstone-signature-event-2018/ is getting a grade of “F” from https://www.webpagetest.org/result/180117_NG_7fb6f7d0cc5f7cb9fa2e727ed6de875d/. The site is running on AZURE and other pages get an “A” on the test.

I looked for some suggestions on your forum, but none helped.
One said to issue the SQL
SELECT option_name, CHAR_LENGTH (option_value) as Char_Length FROM wp_options WHERE autoload='yes' ORDER BY CHAR_LENGTH(option_value) DESC;
and look for large options, but the largest one is only 42893.
There are no large pictures on the page. I have a cache in place.
What can I do to speed things up. The client is very upset by the slow speed.

Thank you.


Josh

  • Support Staff

January 17, 2018 at 7:05 am

Hi Lawrence,

I took a quick look at your page and that page has a lot of ticket options, and each ticket option pulls quite a bit of data from the database. The page load can be sped up by reducing the number of queries to the database. One way to reduce the queries would be to remove each ticket’s show details section. That can be done by going to Event Espresso > Events > Templates, then set the “Show Ticket Details?” option to No.

Then you could also try caching that page with an Azure compatible caching plugin. Caching will also speed up the page because instead of querying the database every time someone requests the page, it will serve a cached file.


Lawrence Seltzer

January 17, 2018 at 12:59 pm

I cannot figure out how to turn the show ticket details off.
Obviously I have turned it off as instructed, and deleted the entire cache online. However, the page still loads very slowly and gives me the option to show details.


Josh

  • Support Staff

January 17, 2018 at 5:00 pm

Obviously I have turned it off as instructed

It doesn’t look like you turned off the show details option. Are you sure that you’re editing the settings for that site? Maybe you made edits to the https://www.thebrownstoneny.org/ site’s settings?


Tony

  • Support Staff

January 18, 2018 at 3:01 am

Just to confirm, the option you need to change is this one – http://take.ms/2SzY0

If you’ve cleared the cache and the show details link remains then it seems that option is still set to yes.


Lawrence Seltzer

January 18, 2018 at 6:15 am

I found the control and was able to set it properly on both thebrownstoneny.org and gatewaysonline.org
It loads a little faster. Hopefully the client will be satisfied.

Thank you very much for your help.


Lawrence Seltzer

January 18, 2018 at 12:48 pm

The client is still livid that the form is so slow. Is there any way to get it to go faster? Other pages on the website load quickly enough, but the event page loads too slowly for him.


Josh

  • Support Staff

January 18, 2018 at 1:30 pm

You can also try caching that page with an Azure compatible caching plugin. Caching will also speed up the page because instead of querying the database every time someone requests the page, it will serve a cached file.


Lawrence Seltzer

January 22, 2018 at 2:04 pm

The client is still very disappointed with the speed of the page.
I downloaded a plugin to compact the database, but it does not seem to do anything with the custom EE4 tables. Is there a way to compact them? for example, there are 1400 price records, even though there have not been very many events. Maybe by removing some extra records the display can occur faster?

THank you.


Josh

  • Support Staff

January 22, 2018 at 2:11 pm

No, please do not compact or remove data from the database. I mentioned earlier, twice, about caching. Can you not cache the page so PHP doesn’t have to generate it with every request?


Lawrence Seltzer

January 22, 2018 at 2:16 pm

I had already implemented the WP Super cache some time ago (AZURE recommends this plugin over the w3 cache plugin).

Does the page https://www.gatewaysonline.org/events/new-generation-of-leaders-brownstone-signature-event-2018/ load quickly for you?


Josh

  • Support Staff

January 22, 2018 at 2:25 pm

That page isn’t being served from a cache. When WP Super Cache serves a page from the cache, it leaves a little html comment near the bottom of the page source like this:

<!-- Dynamic page generated in 7.422 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2018-01-22 16:23:38 -->

<!-- super cache -->

Nothing like the above is present within the source of that page.


Lawrence Seltzer

January 23, 2018 at 2:25 am

I switched to expert mode, modified the .htaccess files as necessary, and tried again. Sometimes it was faster and sometimes not. The word “cache” as you indicated above does not appear in the source code, so I am confused.


Josh

  • Support Staff

January 23, 2018 at 8:53 am

One thing about WP Super Cache is it has settings to configure it to serve cached file to known users or not. Which may be why it’s faster sometimes and then not.

While caching can help, if the underlying issue is the server has some opportunities for tuning for better performance then that will require some more information which can involve these 3 points:

1. What are the specifications of the environment? e.g. how much CPU, how much Ram? What is the database?
2. You can install a plugin like QueryMonitor to see what are the slow queries for that page and that could provide some next steps for troubleshooting
3. You may want to consider adding a monitoring service such as New Relic to your server to help identify bottlenecks in the code running on your site and server. That will shed some insight into where improvements can be made. Event Espresso runs New Relic for its various sites and we use that to help improve EE’s sites in numerous ways to reduce its impact on member’s sites. Every environment is different though, so we appreciate learning from other customers on various platforms with actionable measurements.

For what it’s worth, Event Espresso uses a standard Digital Ocean droplet to host its demo site (which is a Multisite network of 170 demo sites). Here’s an example demo site with a similar amount of tickets, can you see that it has no trouble with loading the page?

http://demoee.org/campout/events/campout-east/


Lawrence Seltzer

January 29, 2018 at 8:54 am

Perhaps with more tweaking I could have made it work. Instead, the client abandoned AZURE and moved the site to wp-engine. Immediately the page began to load 10 times faster (about 6 seconds versus 60)!

I have sent in my comments to AZURE about their performance.

Viewing 14 reply threads

The support post ‘Single event display is exceedingly slow’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso