Skip to content

Get price in list.phtml takes too much time #8428

@cizgidekiadam

Description

@cizgidekiadam

Hello,
We have configurable products with ~450 children. Main product has zero price. Default price is the cheapest price from children.

In product list pages (may be also in other areas), it takes too much to load.
Because, while finding lowest price product, it spend much time.

Especially catalogsearch page. It is not cacheable so every search action, block getting & calculating price repeatedly. I tried MySQL & ElasticSearch, no difference.

Other catalog pages, sake for caching, block loads faster if there is not invalidates.
Using Redis for FPC backend. So if I can enable cache for catalog pages, problem may be resolved.

I have enabled profiler. Magento didn't lose any time in backend or frontend except price block.

Preconditions

  1. Magento 2.1.2
  2. PHP 7.0.14

Steps to reproduce

  1. Create some configurable products with 2 attributes (First attribute has got 10 options, second has got 40 options). So there will be generated about 400 simples.
  2. Clean cache & wait or force reindex
  3. Try to make a search or load page after disable FPC.

Expected result

  1. Load page fast like other pages

Actual result

  1. Page loads too slow

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: SearchIssue: Cannot ReproduceCannot reproduce the issue on the latest `2.4-develop` branchIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions