Mon–Thu 09:30–17:00, Fri until 15:00

Bargteheide 04532 408 99 95Göttingen 0551 890 64 000

Shopware performance

Shopware database query optimisation: find and fix slow queries

We find the queries that slow down your Shopware shop, understand them with EXPLAIN and profiling, and fix them with indexes, better DAL queries or adjusted plugin code.

  • since 2012
  • 200+ online shops
  • 800+ websites
  • Shopware Partner since 2014
Steel balls rolling neatly out of an aluminium tube, symbolising optimised database queries

Online shops

200+

delivered since 2012

Projects delivered

1000+

since 2012

Shopware Partner

since 2014

own plugins in the Shopware Store

2012 founded
200+ online shops
800+ websites
19 experts in our team
  • Shopware logo Shopware Partner since 2014
  • Mollie logo Mollie Partner since 2021
  • Trusted Shops logo Trusted Shops Partner
  • eRecht24 logo eRecht24 Partner
  • magnalister logo magnalister Partner since 2022
  • Base logo Base Partner since 2026
  • sync4 logo sync4 Partner since 2022
  • Pickware logo Pickware Partner since 2019
  • ADCELL logo ADCELL Partner
Shopware clients who work with us

Why Shopware slows down without query optimisation

A single poorly built query can slow a category page down by seconds. Common causes are missing indexes, plugins that load the same data over and over in a loop, or DAL queries that load more associations than necessary. From the outside, all you see is that the page hangs.

What Shopware query optimisation does for you

  • You know which query costs how much time.
  • Missing indexes and unnecessary joins are fixed in a targeted way.
  • Plugins only load the data they really need.
  • Every change is backed by a measurement.

Scope of services

What we take on for your Shopware query optimisation

  • Slow query log

    Collect the slowest queries in live operation and sort them by impact.

  • EXPLAIN analysis

    Understand why a query is slow: table scans, joins, sorting.

  • Indexes

    Add missing indexes, remove redundant ones.

  • DAL & associations

    Build criteria so that Shopware only loads what the page needs.

  • Plugin code

    Bundle queries inside loops and cache the results.

  • Profiling

    Use Tideways to see which query is stuck in which request.

With database query optimisation, we find the queries that slow down your Shopware 6 shop and fix them specifically. We evaluate the slow query log, analyse queries with EXPLAIN and use profiling to see which request triggers which query. The solution often lies in a missing index, an overly broad DAL query or a plugin that loads data in a loop.

Tech stack

  1. ApplicationShopware, Laravel or WordPress with theme and plugins
  2. Cache and searchRedis and Elasticsearch configured to fit
  3. PHPcurrent version with OPcache
  4. Serverour own servers with NVMe storage
We look at every layer, not just the theme: from the application through cache and search to the server.

From symptom to cause

‘The category page is slow’ is a symptom. Profiling turns it into a concrete query: for example a variant list that is reloaded separately for every product, or a filter that scans a large table in full. Only once we know the cause do we decide whether an index, a changed criteria object or a rework of the plugin is the right answer.

public static function getSubscribedEvents(): array
{
    return [
        ProductPageLoadedEvent::class => 'onProductPage',
    ];
}

public function onProductPage(ProductPageLoadedEvent $event): void
{ /* add data without touching the core */ }
We build extensions as separate Shopware plugins so the shop stays update-safe.

Looking at code and server separately

Some queries are well built and still slow because the database server is configured too tightly. We deal with that in database performance optimisation. Search and listings can also be taken out of the database entirely with Elasticsearch or OpenSearch.

Search result

Example

www.web-labels.de › en › shopware › database-query-optimisation

Shopware database query optimisation | Web Labels

Find and fix slow database queries in Shopware 6: slow query log, EXPLAIN, indexes, DAL associations and plugin code. Measured before and after.

This is how this page appears in search with its title and description. We write both ourselves for every page.

How we work

How database optimisation for your Shopware shop works

  1. Understand

    We look at your business, your systems and your figures before we suggest anything.

  2. Plan

    You receive a concept and a quote with individual items and a realistic schedule.

  3. Build

    We develop in stages. You see interim results on a test environment and approve them.

  4. Run

    After go-live we take care of hosting, updates and monitoring if you want us to.

References

Shopware projects with query optimisation from our work

All Shopware references

Your contacts

Your contacts for the Shopware database

Tell us where your project stands. Janis and Tim will listen, ask questions and tell you honestly what we recommend and roughly what it will cost.

Janis Rittmeier and Tim Schröder, Key Account Manager at Web Labels, your contact for Database queries

Our team for your questions

  • René Grosche, Managing Director at Web Labels René Grosche Managing Director
  • Marco Kreutzfeldt, Deputy Managing Director · Back office at Web Labels Marco Kreutzfeldt Deputy Managing Director · Back office
  • Tim Schröder, Key Account Manager at Web Labels Tim Schröder Key Account Manager · Consulting and quotes
  • Janis Rittmeier, Key Account Manager at Web Labels Janis Rittmeier Key Account Manager · Consulting and quotes
  • Lennart Albrecht, Head of Development at Web Labels Lennart Albrecht Head of Development
  • Tom Baustian, Web design · Performance marketing · Audio at Web Labels Tom Baustian Web design · Performance marketing · Audio
  • Tajara-Tabea Leonard, Web design · Content · SEO at Web Labels Tajara-Tabea Leonard Web design · Content · SEO
  • Ken Raupach, Web design · Performance marketing at Web Labels Ken Raupach Web design · Performance marketing
  • Muhammed Tay, Web development at Web Labels Muhammed Tay Web development
  • Alexander Folz, Web development at Web Labels Alexander Folz Web development
  • Aaron Griem, Web development at Web Labels Aaron Griem Web development
  • Leon Fischer, Web development at Web Labels Leon Fischer Web development
  • Patrick Heidl, Web development at Web Labels Patrick Heidl Web development
  • Tobias Schäfer, Web development at Web Labels Tobias Schäfer Web development · Complex development
  • Laura Schop, Web development at Web Labels Laura Schop Web development
  • Aleksej Werestschagin Web development
  • Julina Sievert, Apprentice at Web Labels Julina Sievert Apprentice
  • Rosa-Lee Biesterfeldt, Apprentice at Web Labels Rosa-Lee Biesterfeldt Apprentice
Technologies
ShopwareTidewaysMySQLMariaDBPHP

Frequently asked questions about Shopware query optimisation

All questions and answers
How do you find the slow queries?

Via the database's slow query log and by profiling individual requests, for example with Tideways. This shows us which query costs the time on which page.

Do you change Shopware itself to do this?

No. We do not change the Shopware core. We optimise indexes, custom extensions, plugins and the way data is loaded, so updates remain possible.

How is this different from database performance optimisation?

This is about individual queries and the code behind them. With database performance, we tune the database server itself, for example memory, buffers and clean-up tasks.

Related services
  • Performance

    Faster Shopware 6 shops: we measure with ShopSignal and Tideways, find the bottlenecks in database, cache, search, theme and server, and fix what makes the biggest difference first.

  • Redis

    We set up Redis for Shopware 6: for cache, sessions, locks and counters, cleanly separated and configured to stay stable under load.

  • Elasticsearch

    We connect Elasticsearch or OpenSearch to Shopware 6 so that search, filters and listings come from a dedicated index and the database is relieved.

  • Database performance

    We configure MySQL or MariaDB to suit your Shopware shop, clean up growing tables and make sure background processes do not slow the database down.

Tell us about your project

A few sentences are enough to start. We will get back to you with questions or a suggested date.

Up to 80% government funding