When your online store is slow, start by measuring the action that keeps shoppers waiting. If it's product filtering, check time to first byte (TTFB) and how long it takes for the results to appear. If the delay is on the server, measure the time spent in application code, SQL queries and calls to external services. Upgrade your hosting when the measurements identify a specific infrastructure bottleneck.

Which action in the store is slow?

Start with a specific action: opening a category, applying filters, searching or adding a product to the basket. The homepage may come straight from the cache while a particular combination of filters makes the application look up and sort products in the database on every request. A homepage test tells you little about that filtered view.

We've seen this when shoppers filter a product catalogue. I start by trying to reproduce the delay the shopper sees. We record the category, filters and sort order so we can repeat that exact action after a change. Then we check whether the data is slow to arrive or the browser already has it and is still updating the list.

What does TTFB tell you, and how do you isolate the bottleneck?

Time to First Byte (TTFB) measures the wait for the first byte of a response. For a page navigation, it can include network and connection setup time and redirects. In Chrome's Network panel, Waiting (TTFB) is a specific phase of the request. It includes a network round trip and the time the server takes to prepare the response. To tell those apart, compare it with the processing time recorded on the server.

For a filter interaction, open Network and inspect the request sent when the filter changes. It may load a new page or fetch results in the background. Check the parameters sent, the wait for the first byte, the time it takes to receive the response and when the product list actually updates on screen.

What you seeWhat to check next
A long wait for the first byteCompare it with the time logged on the server for the same request. If the delay is there as well, look at application code, SQL queries and external services.
The first byte arrives quickly, but the response downloads slowlyCheck the response size and the connection. The application may be returning more data than the list needs.
The browser has the response, but the results appear lateLook at how the browser processes the data and updates the page.

On the server side, we measure application logic, database queries and rendering separately. When timings alone are inconclusive, we isolate one part at a time in a test environment. For example, we can give a template the same results prepared in advance and time it without waiting for the database. If the page is fast with that input, we've narrowed down what to investigate. We then rerun the original journey to check how the store behaves as a whole. In a Symfony project, the Profiler can help in a test environment.

Why does product filtering slow some online stores down?

One click can trigger several queries. The application may fetch the products for the current page, count every match and calculate how many results each brand or size would return. Repeating any of that work adds time. A single query can also slow down the catalogue if it has to examine and sort a large number of rows before returning the first 24 products.

We start by checking what the database actually does. Count the queries for that action and measure how long they take. Then inspect the plan for the most expensive one: which indexes it uses, how many rows the optimiser expects it to examine and whether it needs a separate sort. EXPLAIN in MySQL shows the plan. To see actual timings, use EXPLAIN ANALYZE in a suitable test environment, since it executes the query. In MariaDB, ANALYZE provides actual execution statistics.

Here's a simplified example: active products in one category, sorted by price. It's an illustrative query, not a WooCommerce schema or a client example.

SELECT id, name, price FROM products WHERE category_id = 12 AND is_active = 1 ORDER BY price, id LIMIT 24;

For this query, I'd check for a suitable composite index, such as (category_id, is_active, price, id). The first two columns match equality conditions; the remaining columns are the sort order. Under the right conditions, using that index can reduce how much data MySQL reads and let it read rows in order instead of sorting them separately. Check the plan with realistic data. Adding indexes for every filter makes catalogue updates more expensive and doesn't mean the optimiser will use them.

What should you change first: the query, the index or the cache?

When the timings point to the database, we first check whether we can do the same work with fewer queries, fewer reads or a smaller response. Then we test an index suited to the query. Caching helps when the same result is requested often and the store has a clear rule for when it goes stale.

  • Query: If the list runs a separate query to fetch the attributes for every product, check whether you can load those attributes together. Return the fields the list displays. If counts next to each filter are the most expensive part, time that work separately.
  • Index: Match the index to the actual filters, joins and sort order. Measure the effect on reads and check what happens to large catalogue imports.
  • Cache: Keep frequently requested results separate by filter combination, sort order, page and price group if it changes the response. Decide how changes in prices or stock invalidate cached results. In WooCommerce, the basket, checkout and account pages should stay out of the shared page cache.

If a store is linked to an ERP, price and inventory changes may arrive from another system. Your caching rules should account for how the ERP integration updates the data. If complex filtering is still expensive after these checks, compare direct SQL queries with a dedicated search index. A separate index also means keeping another copy of the product data in sync.

When is more powerful hosting the right move?

I'd recommend changing the hosting once we've checked the queries, code and caching and can point to a resource that runs short when the store slows down. That might be requests queueing at the application, saturated CPU, memory pressure or processes spending much of their time waiting for storage I/O. Compare those measurements with when shoppers experience the delay.

On Linux, for instance, iostat can show the average time a read or write takes, including queueing, as well as the average queue length. I check whether those numbers rise at the same time as store requests slow down. If we don't have server access, we ask the hosting provider for measurements covering the same period.

Moving from an old drive to NVMe can make a noticeable difference when the request spends a lot of time waiting for reads or writes. In PHP, for instance, OPcache keeps compiled code in memory and reduces the work of loading and compiling scripts. Once caches are warm, a faster drive may make less difference to the same request. And if the application is waiting for a response from an external service, changing the drive won't shorten that wait.

Here's an illustration, not a project benchmark. Suppose the backend takes 800 ms and 200 ms of that is spent waiting for storage on the critical path. Even if you could remove that entire wait, the backend time would fall by at most 25%, all else being equal. A repeat test will tell you the actual difference. Before recommending a more expensive plan, I want to see which resource is limiting the store under real load.

How do you know the store is faster after the change?

To check whether the store is faster, repeat the same actions under comparable load and with the same amount of data. Record both time to first byte and the time from applying a filter to seeing the results. If you can control caching in a test environment, measure separately with cold and warm caches. Run the test several times and look at the slow runs, too. If the slowdown only happens at peak times, one test during a quiet period won't tell you whether it is fixed.

We also check that the products, counts, prices and stock are still right after the change. To me, that's part of the same test. If the result loads faster but shows yesterday's stock, the work isn't done.

If a specific action is slow in your store, contact Sirius Software with the page URL, the steps to reproduce it and when it occurs. We can use an initial consultation to work out what to measure first. You can also read about our approach to maintaining and developing existing software.

Georgi Papucharov, co-founder and CEO of Sirius Software.