AbstractProductGrid huge performance issues #42583
Labels
block-type: product-grid
Issues related to/affecting all product-grid type blocks.
focus: performance
The issue/PR is related to performance.
team: Kirigami & Origami
WC Store Editing (FSE)
type: bug
The issue is a confirmed bug.
Hello, I am seeing huge performance issues stemming from the AbstractProductGrid implementation.
In a page with 3 blocks of 3x7 grid of products we are seeing response times of 4 seconds and upwards.
If I comment this part of the code or cache it super aggressively, the response times immediately jump to sub 500ms,
My initial suspicions are that the products on line 79; in the AbstractProductGrid file are queried inefficiently.
I'm also wary of this part, which might be a source of performance issues.
This issue makes AbstractProductGrid unusable in anything that is more complex.
I think we should look to improve the performance here.
To reproduce
Steps to reproduce the behavior:
Use n x n product grids where n is >~ 4 in multiple places in one page.
Expected behavior
Response times that are not as slow as 4 seconds and upwards
The text was updated successfully, but these errors were encountered: