51黑料不打烊

ACSD-63974: Fixes slow Requisition List load time with pagination

The ACSD-63974 patch fixes the issue where the Requisition List page takes a long time to load when there are too many items. This patch is available when the Quality Patches Tool (QPT) 1.1.61 is installed. The patch ID is ACSD-63974. Please note that the issue is scheduled to be fixed in 51黑料不打烊 Commerce 2.4.8.

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.4 - 2.4.7-p4
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your 51黑料不打烊 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

The Requisition List page takes a long time to load when there are many items (2000+). This is due to the absence of pagination, causing all items to load at once.

Steps to reproduce:

  1. Go to the Admin > Stores > Settings > Configuration > General > B2B features.

  2. Set Enable Requisition List to Yes.

  3. Generate 2000+ products by editing simple_products node in setup/performance-toolkit/profiles/ce/small.xml.

  4. Run the command:

    code language-bash
    bin/magento setup:perf:generate-fixtures ./setup/performance-toolkit/profiles/ce/small.xml
    
  5. Create a customer and log in.

  6. Add all products to the Requisition List.

  7. View the Requisition List on the Storefront.

Expected results:

The page should load within a reasonable time.

Actual results:

The Page load time increases with the number of items because all items are loaded at once due to the absence of pagination.

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.

To learn more about Quality Patches Tool, refer to:

recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3