Make parallel block editor migration optional #17827
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Prerequisites
If there's an existing issue for this PR then this fixes #17810
Description
we're migrating all block editor data for V15 to a new data format that supports block level variance. For SQL Server, we run this migration in parallel to speed things up. Unfortunately, it turns out that certain content architectures won't support that - #17810 is an example of this.
This PR makes the parallel migration an opt-in thing, meaning one must explicitly choose to use parallel migration. It utilises the migration options that have already been put in place for opting out of the migration entirely (see this docs article).
Testing this PR
Setup a V13 or V14 site using SQL Server. Make sure you have a backup of the database 😄
Now run the V15 migration from this branch. It should run both with and without parallel execution of the migration.
To enable parallel migration, add the following composer:
Docs update
I have queued a task to update the article above to include this configuration, after this is merged in 👍