Jump to content

Menu addon runs double SQL query over 500 times for a single page request [1.7.6.4]


nik

Recommended Posts

My online shop is using a couple of menu addons, called JMSMegaMenu and JMSVerticalMenu. These came with the theme I have been using since day one, also from JMS.

I ran a profiler for diggint into some performance issue and I discovered following:
For every page request, the 2 addons run an identical sql query 456 and 231 times accordingly (once for every single menu item and subitem of the shop), inorder to fetch the names of the menu items.


Capture.thumb.JPG.3e42d3460ef28ec26bcd7d2b31dbcabd.JPG

 

I'm wondering if this is a good practise for Menu Addons and such an amount of double queries is normal, or if I am using an extremely badly designed addon.

I assume that this behaviour is stressing our the respective SQL tables, which highly affects the performance, and especially the TTFB, which I am having issues with.

Thanks in advance,

Nikos 

Edited by nik (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...
  • 9 months later...

Hello,

It seems that the first query is for the Mega menu, and the second one is for the vertical menu module. They are separate modules, and because of this doubles the query. 

But running the same query 456 and 231 times to get only the name of the menu items means that the modules are designed badly.

What you can try is to contact the module/theme developers and ask them to optimize the module/theme for you, or try a better-optimized module. 

Have a nice day, Leo.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...