Slow to open category edit page with multiple categories and products due to product counts #39584
Labels
Area: Catalog
Component: Catalog
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Priority: P2
A defect with this priority could have functionality issues which are not to expectations.
Reported on 2.4.7-p3
Indicates original Magento version for the Issue report.
Reproduced on 2.4.x
The issue has been reproduced on latest 2.4-develop branch
Triage: Dev.Experience
Issue related to Developer Experience and needs help with Triage to Confirm or Reject it
Preconditions and environment
Steps to reproduce
On a store with at least 4 million products and 526 categories we face slow time loading the category edit pages.
Here's a profile from blackfire indicating that the time is lost in loading the product counts for all categories. You can see the query is repeated 500 times I'm assuming once per category.
I believe for large stores there should be way to toggle this off at the very least as it adds 10 seconds delay per page load or even if we cache the result for a short period it should still not cause big issues for normal usage.
Expected result
Admin can edit the categories fast
Actual result
Admin has to wait 10 seconds per page load for the counts to be recalculated
Additional information
No response
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: