ACP2E-4805: Checkout requests slow down for configurable products when the first salable child appears later in the list

The ACP2E-4805 patch fixes the issue where checkout requests, such as totals-information and estimate-shipping-methods, experience significant performance degradation for configurable products with many child products when the first salable child appears later in the list. This patch is available when the Quality Patches Tool (QPT) 1.1.82 is installed. The patch ID is ACP2E-4805. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.10.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) 2.4.8-p4

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.8 - 2.4.8-p5
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the 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

Checkout requests, such as totals-information and estimate-shipping-methods, experience significant performance degradation for configurable products with many child products when the first salable child appears later in the list.

Prerequisites:

Inventory Management (MSI) is enabled.

Steps to reproduce:

  1. Create a configurable product with 600 child products.
  2. Disable the first 400 child products by entity_id in ascending order.
  3. Add the configurable product to the cart 3 times with different option selections.
  4. Open the cart page and observe the response time for the totals-information request.
  5. Enable the first child product by entity_id in ascending order.
  6. Open the cart page again and observe the response time for the totals-information request.
  7. Compare the response times when an early child product is salable versus when the first salable child appears much later in the child product list.

Expected results:

All totals-information requests have similar response times regardless of which child product is the first salable one.

Actual results:

There is an observable response time change depending on the position of the first salable child.

Apply the patch

To apply individual patches, use the following links depending on your deployment method:

To learn more about Quality Patches Tool, refer to:

recommendation-more-help
commerce-operations-help-tools