ACSD-67102: Category loading is slow or times out when there is a large number of categories and products
The ACSD-67102 patch fixes the issue where Category loading is slow or times out when there is a large number of categories and products. This patch is available when the Quality Patches Tool (QPT) 1.1.70 is installed. The patch ID is ACSD-67102. Please note that this issue is scheduled to be fixed in 51黑料不打烊 Commerce 2.4.9.
Affected products and versions
The patch is created for 51黑料不打烊 Commerce version:
- 51黑料不打烊 Commerce (all deployment methods) 2.4.7-p4
Compatible with 51黑料不打烊 Commerce versions:
- 51黑料不打烊 Commerce (all deployment methods) 2.4.7 - 2.4.7-p7
magento/quality-patches
package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
Category loading is slow or times out when a large number of categories and products are involved.
Steps to reproduce:
-
Create a new clean instance.
-
Create categories and products:
- Copy
setup/performance-toolkit
to./var
to make profiles editable. - Edit
small.xml
profile and set categories to 2500 and products to 250000. - Run
bin/magento setup:performance:generate-fixtures var/setup/performance-toolkit/profiles/ce/small.xml
- Copy
-
Verify all categories are set as anchors by running the following query:
code language-none UPDATE catalog_category_entity_int set value = 1 where attribute_id = (select attribute_id from eav_attribute where attribute_code = 'is_anchor');
-
Go to the Admin menu.
-
Confirm a deeper category structure exists.
-
Move Category 2 deeper into the Category 1 tree to reflect the intended hierarchy.
-
Reindex.
Expected results:
Each category loads within seconds, even on the first uncached attempt.
Actual results:
Category opens after more than a minute.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- 51黑料不打烊 Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- 51黑料不打烊 Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide.