719-286-0751 [email protected]

Magento Admin Performance Optimization, Part 3: Product grid and search (2.32 s to 0.59 s)

Magento Admin Performance Optimization, Part 3: Product grid and search (2.32 s to 0.59 s)

This is part 3 of our series on what we did for the admin of a B2B store with 67,000 products. Staff opening Catalog > Products waited for the list, then waited again after every “Search by keyword”, sometimes long enough to wonder whether the search had gone through. After our work, the grid at 200 rows is usable in 0.59 seconds instead of 2.32 seconds, and the server answers a keyword search in 0.85 seconds instead of 5.5 seconds.

Side-by-side recording of the Magento 2 products grid loading on a store with 67,000 products, before the work on the left and after on the right, each with a timer
The products grid on the staging site of a B2B store with 67,000 products. Before is on the left and after is on the right, in real time; each counter stops when the screen is usable.
Before After
Products grid, 200 rows (time until usable) 2.32 s 0.59 s (74% less)
Keyword search (server response time) 5.5 s 0.85 s

At 0.59 seconds, opening the grid no longer feels like a wait. The search change is the bigger one: five and a half seconds is long enough that people start a search and look away, and the server now answers in under a second. The work on this Magento Open Source 2.4 store combined our Magento admin optimizer with going through its extensions and custom code. For the grid we measured the time from the click until the screen is usable, as the median of three recorded loads on the client’s staging site, with the same screens before and after; the search figure is the server’s response time instead.

What we optimized

  • The database work behind keyword search. A search was asking the database for far more than the results needed. We reworked those queries, and the results are identical.
  • Counting and filtering. The “records found” total and the column filters used slow routes through the data on a catalog this size.
  • Extension columns. One status column added by an extension made the database go through every product in the catalog to fill a single column on the page. It now looks only at the products being shown.
  • The grid renderer. At 200 rows, Magento’s own grid gives the browser a lot to build. We replaced it with our own renderer, so the browser’s work stays in proportion to what is on screen.
Do you want a faster Magento admin?
We’ve optimized hundreds of Magento stores. Get in touch and let us know roughly how many products you have, and we’ll let you know the kind of performance improvement you can expect.
Contact us

A few general pointers

  • Rows per page. Drop the grid to 20 or 50 rows and compare. Magento pulls each product together from several stored attributes, so 200 rows is far more work than 20, on the server and in the browser alike.
  • Visible columns and saved views. Open the Columns control and switch off what nobody uses, then check saved views too, since each one keeps its own columns and filters.
  • Measure before changing anything. The Network tab in the browser’s developer tools shows the page load and then a separate request for the rows, which tells you whether the wait is on the server or in the browser. Time it three times, and time a keyword search the same way.
  • Indexers and cron. If the grid is fine at 7 a.m. and slow at 2 p.m., ask your developer whether any indexer is stuck or whether background jobs overlap during working hours.

On a large catalog, the products grid and its search get heavy quickly. Get in touch and tell us a little about your store, and we will tell you plainly what we think is realistic for your catalog screens.

Do you want a faster Magento admin?
We’ve optimized hundreds of Magento stores. Get in touch and let us know roughly how many products you have, and we’ll let you know the kind of performance improvement you can expect.
Contact us
More in this series: Magento Admin Performance Optimization
What we changed in the Magento admin of a B2B store with 67,000 products, one screen at a time.

  1. Part 1: The orders grid (2.53 s to 0.57 s)
  2. Part 2: The order view page (1.70 s to 0.39 s)
  3. Part 3: Product grid and search (2.32 s to 0.59 s) (this article)
  4. Part 4: The category screen (0.24 s per click)
  5. Part 5: Extensions and background jobs
Install our webapp on your iPhone! Tap and then Add to homescreen.
Share This