Skip to content

Bundle product with hundreds of options takes minutes to save and timeout (with inventory enabled) #34732

@santerref

Description

@santerref

Preconditions (*)

  1. Magento version 2.4.3
  2. Inventory enabled
  3. Bundle product with a lot of options (200 to 500)

Steps to reproduce (*)

  1. Enable the inventory
  2. Create a bundle product with 200+ options (children)

Expected result (*)

  1. Product save quickly as usual
  2. The indexes are updated for 201 products

Actual result (*)

  1. The plugin ReindexSourceItemsAfterSaveBundleSelectionPlugin of the module module-inventory-bundle-product-indexer is called after each saveChild of \Magento\Bundle\Model\LinkManagement and reindex all the options and the main product. That means for a bundle product with 200 options, the 200 options get reindexed 200 times ! 200 reindex requests of 201 products.
  2. The save takes more than 3 to 5 minutes and the server timeout. We can't save our bundle products.

Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions