Skip to content
This repository was archived by the owner on Oct 19, 2022. It is now read-only.

Performance: Slow export caused by inefficient collections #111

@pmzandbergen

Description

@pmzandbergen

For a larger shop (39 stores, 82.500+ products) it takes a long time to generate the export (almost one hour for a feed of just over 60MB). This is mainly caused by the way the product iterator is designed. It doesn't take into account the primary selection criteria used by ExportEntity::shouldExport (linked to website, visibility, etc.). All products for every single store are iterated, which is not very efficient.

Suggestions

  • Limit the collection / iterator to products which should be exported (quick & best win)
  • Create a collection for multiple stores at once (mainly improves the performance for shops where multiple store views share a large amount of products)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions