QUALITY PATCH

ACSD-62355: The configurable product edit page takes a long time to load…

The configurable product edit page takes a long time to load when the configurable product is based on multiple attributes with many values, causing delays and potential timeout or memory limit issues. Quality patch ACSD-62355 for magento/module-configurable-product applies to Magento Open Source and Adobe Commerce 2.4.6 to 2.4.7-p10.

Categories
Admin, Performance
Components
magento/module-configurable-product
Origin
adobe-commerce-support
Since QPT
1.1.56

Issue

The configurable product edit page takes a long time to load when the configurable product is based on multiple attributes with many values, causing delays and potential timeout or memory limit issues.

Steps to reproduce

1. Create 9 new attributes in the default attribute set, each is Filterable and has Scope: Global. * Attribute 1: 50 options * Attribute 2: 20 options * Attribute 3: 10 options * Attribute 4: 5 options * Attribute 5: 5 options * Attribute 6: 5 options * Attribute 7: 5 options * Attribute 8: 3 options * Attribute 9: 2 options 1. Create 9 simple products with combinations of options from the newly created attributes. * Product 1: First option from each attribute * Product 2: Second option from each attribute * Product 3: Third option from each attribute * Product 4: Fourth option from each attribute * If an attribute has fewer options than the number of products, assign the remaining products to random options within that attribute. 1. Create a configurable product that uses the newly created attributes: * Add one child product with the following configuration: * Use the last option from Attribute 1, and the first option from Attributes 2 to 9. * This results in 1 configurable product and 1 child product. 1. Go to the Configurations tab of the configurable product. 1. Click Add Products manually and start adding the previously created simple products one by one. 1. Save the changes after each addition. 1. As you add products, observe the loading time of the edit configurable product page. 1. After adding 7 products, you should notice a significant increase in RAM consumption and page loading tim

Adobe's page lists 2.4.6 - 2.4.7-p3 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.

Adobe scheduled the permanent fix for 2.4.8.

Install

Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply ACSD-62355. On Cloud, add ACSD-62355 under stage.build.QUALITY_PATCHES in .magento.env.yaml.

For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its ACSD-62355/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.

Patch files and compatible versions

Packages across compatible versions (1): magento/module-configurable-product
Packages across compatible versions (1): magento/module-configurable-product

magento/magento2-base >=2.4.6 <2.4.8

Magento Open Source
2.4.7-p10, 2.4.7-p9, 2.4.7-p8, 2.4.7-p7, 2.4.7-p6, 2.4.7-p5, 2.4.7-p4, 2.4.7-p3, 2.4.7-p2, 2.4.7-p1, 2.4.7, 2.4.6-p15, 2.4.6-p14, 2.4.6-p13, 2.4.6-p12, 2.4.6-p11, 2.4.6-p10, 2.4.6-p9, 2.4.6-p8, 2.4.6-p7, 2.4.6-p6, 2.4.6-p5, 2.4.6-p4, 2.4.6-p3, 2.4.6-p2, 2.4.6-p1, 2.4.6
Adobe Commerce
2.4.7-p10, 2.4.7-p9, 2.4.7-p8, 2.4.7-p7, 2.4.7-p6, 2.4.7-p5, 2.4.7-p4, 2.4.7-p3, 2.4.7-p2, 2.4.7-p1, 2.4.7, 2.4.6-p15, 2.4.6-p14, 2.4.6-p13, 2.4.6-p12, 2.4.6-p11, 2.4.6-p10, 2.4.6-p9, 2.4.6-p8, 2.4.6-p7, 2.4.6-p6, 2.4.6-p5, 2.4.6-p4, 2.4.6-p3, 2.4.6-p2, 2.4.6-p1, 2.4.6
Patch file
patches/os/ACSD-62355_2.4.7-p1.patch
  • vendor/magento/module-configurable-product/Block/Adminhtml/Product/Edit/Tab/Variations/Config/Matrix.php
  • vendor/magento/module-configurable-product/Ui/DataProvider/Product/Form/Modifier/Composite.php
  • vendor/magento/module-configurable-product/Ui/DataProvider/Product/Form/Modifier/Data/AssociatedProducts.php
  • vendor/magento/module-configurable-product/view/adminhtml/templates/catalog/product/edit/super/wizard.phtml

Sources

Łukasz Bajsarowicz
Built by

Łukasz Bajsarowicz, e-commerce architect

Magento and Adobe Commerce architecture, upgrades, performance and audits for merchants and agencies since 2015; magento.watch is the tooling I use on those projects.

Open source, maintained on weekends.