[PaaS only]{class="badge informative" title="Applies to Adobe Commerce on Cloud projects (Adobe-managed PaaS infrastructure) and on-premises projects only."}

ACSD-65684: Upgrading Magento_Company in B2B 1.5.2 is slow with over 100,000 records in company_structure

The ACSD-65684 patch fixes a performance issue where upgrading the Magento_Company module in B2B 1.5.2 takes too long when processing 100,000+ records in the company_structure table. This patch is available when the Quality Patches Tool (QPT) 1.1.64 is installed. The patch ID is ACSD-65684. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.9.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce B2B (all deployment methods) 1.5.2

Compatible with Adobe Commerce versions:

  • Adobe Commerce B2B (all deployment methods) 1.5.2
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

Performance issue where upgrading the Magento_Company module in B2B 1.5.2 takes too long when processing 100,000+ records in the company_structure table.

Steps to reproduce:

  1. Install Adobe Commerce 2.4.7-p4 with B2B.
  2. Add 100,000 records to company_structure table.
  3. Upgrade to Adobe Commerce 2.4.7-p5 and the latest B2B module (1.5.2).
  4. Apply patch ACSD-65540.
  5. Run:
bin/magento setup:upgrade

Expected results:

setup:upgrade completes in a reasonable time.

Actual results:

setup:upgrade takes an excessively long time to complete.

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
c2d96e17-5179-455c-ad3a-e1697bb4e8c3