Skip to content

Risk of slow order processor #22

@loevgaard

Description

@loevgaard

On this line: https://github.com/Setono/SyliusShopTheLookPlugin/blob/master/src/OrderProcessor/LookDiscountOrderProcessor.php#L46, all the looks are fetched on each processing of the order. If a shop has thousands of looks this will slow down the order processor.

A possible solution is to find the looks that have one or more of the products that are also in the cart. This way you have a set of 'candidate' looks that you can iterate through afterwards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions