Description
When running bin/magento setup:upgrade
for a Magento CE 2.3.x installation(or just use Magento Open source), there is an unexpected delay in the recurring setup script execution on the Magento_Customer
module(every time when you run bin/magento setup:upgrade
) . This is more pronounced on a large data set (>500K customers).
References
- MAGETWO-85326
- dc4bb0e#diff-0ac6816ed3ec11b7a9c59731fae99d4b
Preconditions (*)
- Magento CE 2.2.x(or 2.3.x) -> 2.3.x upgraded codebase (pre DB upgrade)
- A large customer database (>500K records).
Steps to reproduce (*)
- After codebase upgrade, proceed to run
bin/magento setup:upgrade
- Observe execution delay on process step:
Module 'Magento_Customer':
Running data recurring...
Repeat these steps and you will notice, since there is a recurring upgrade script, that it runs every time.
Expected result (*)
- No recurring data scripts run, or they are or more performant.
Actual result (*)
- Recurring data scripts run with each attempt to upgrade the DB.
After ending of update you can run again bin/magento setup:upgrade
and you will meet this problem again.
I am not sure of the need/reason to run a recurring upgrade, but from the reference posted at the top of this issue it's clear the intent to is to handle reindexing on upgrades. This seems unwise and gives room for abusing recurring upgrade scripts with patch-like behavior or long-running processes which can delay deployment times.
Do you have any background regarding the nature of the change?