Home Forums WoodMart support forum High SQL Queries Issue – Mega Electronics Layout

High SQL Queries Issue – Mega Electronics Layout

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #716091

    bonus
    Participant

    Hello,

    I am currently using the Mega Electronics layout in the WoodMart theme, and I’ve noticed a significant performance issue related to a high number of SQL queries.

    After analyzing the site with Query Monitor, I can see that even when certain sections are hidden (e.g., using responsive visibility in Elementor), the queries are still being executed. This results in a large number of unnecessary database queries on home page load.

    Here are the key concerns:

    The Mega Electronics layout appears to load multiple product/category queries simultaneously
    Hidden sections (via Elementor responsive settings) still trigger backend processing and SQL queries
    This significantly impacts performance, especially on pages with multiple product widgets or dynamic content

    My questions are:

    Is this expected behavior for the Mega Electronics demo/layout?
    Are there built-in optimization options to reduce the number of SQL queries?
    Is there a recommended way to disable unused sections at the server level (not just visually)?
    Does WoodMart provide any performance mode or query optimization for complex layouts like this?

    I would appreciate any guidance or best practices to reduce the number of queries and improve performance. I am using Query monitor plugin for testing.

    #716104

    Artem Temos
    Keymaster
    Xtemos team

    Hi there,

    Thanks for the detailed report and for checking with Query Monitor.

    A few important clarifications first
    – Elementor responsive visibility hides elements with CSS only. Those widgets are still rendered on the server, so their database queries will still run even if they are hidden for some devices.
    – The Mega Electronics homepage showcases multiple product/category sections. Each of those widgets will run its own WooCommerce queries. This is expected for such complex layouts.

    To fix this, enable a persistent object cache on the server (e.g., Redis or Memcached). This can significantly cut repeated WooCommerce queries. Your hosting provider can help enable and configure it.

    Kind Regards

    #717233

    bonus
    Participant

    I would like to ask if there is an option to install WoodMart demo websites using the Gutenberg (Block Editor) instead of Elementor.

    Since Gutenberg is significantly lighter and provides better performance and optimization, I’m wondering if demo imports can be set up directly with Gutenberg as the primary page builder during installation.

    Previously, there may have been an issue related to Elementor style loop behavior, which is part of the reason I’m exploring Gutenberg as an alternative.

    #717260

    Artem Temos
    Keymaster
    Xtemos team

    Hi,

    Yes, you can use Gutenberg as the primary page builder with WoodMart. Go to Theme Settings → Other and set Current builder to Gutenberg. You can also enable the option Gutenberg editor for products if you want to edit WooCommerce product descriptions with the block editor.

    Demo content and templates:
    – Go to WoodMart → Prebuilt Websites to import a complete website, or switch to the Additional pages tab to import specific pages.
    – You can also build pages with our Gutenberg Templates Library. In the block editor, open the Patterns panel to insert WoodMart sections and blocks and assemble your layouts without Elementor.

    Note that there is no automatic conversion from Elementor to Gutenberg because they store content differently. Existing Elementor pages would need to be recreated with Gutenberg blocks or by inserting sections from the Templates Library.

    Kind Regards

Viewing 4 posts - 1 through 4 (of 4 total)