Skip to content

Setup upgrade works more than 15 minutes during installing module #457

Open
@ihor-sviziev

Description

@ihor-sviziev

Issue Description

Preconditions

1. Magento CE 2.2.6 with ~1 million of existing orders + the ~2 millions of quotes in quotes table
2. mc-magento2 1.0.30

Steps to reproduce

1. Install module
2. run `php bin/magento setup:upgrade`

Actual and Expected result

Setup upgrade process should run just few minutes

Additional information

This issue appears because during installing module execution altering tables of "quote", "sales_order" and "sales_order_grid" tables, as result - it takes more than 5 minutes just to execute one alter table command.

How it can be avoided - do not add any columns to orders and quotes tables, instead - use own tables and select data from them when needed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions