Skip to content

Perfomance issue on product page with all product type #25111

@sunilit42

Description

@sunilit42

Preconditions (*)

  1. Magento 2.3-develop

Steps to reproduce (*)

  1. go to any product and review all sql for this

Expected result (*)

  1. it should be call query only one time

Actual result (*)

  1. https://github.com/magento/magento2/blob/2.3-develop/app/code/Magento/Bundle/Model/ResourceModel/Selection.php#L133 calling multiple times to get identifier all block

More info
https://github.com/magento/magento2/blob/2.3-develop/app/code/Magento/PageCache/Model/Layout/LayoutPlugin.php#L71

it calling block->getIdentities()

and in bundle product created plugin for

https://github.com/magento/magento2/blob/2.3-develop/app/code/Magento/Bundle/Model/Plugin/Product.php#L35

and it is calling for me 24 times on the product page and 24 times run query for parent id of specific child id.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: Framework/CodeComponent: MysqlMqIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P3May be fixed according to the position in the backlog.Progress: doneReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseSeverity: S2Major restrictions or short-term circumventions are required until a fix is available.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject itTriage: Performancestale issue

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions