Skip to content

Commit ce02340

Browse files
committed
Document opt-in for parallel content migration of block editors
1 parent e59418c commit ce02340

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

15/umbraco-cms/fundamentals/setup/upgrading/version-specific/migrate-content-to-umbraco-15.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,34 @@ You can track the progress of the migration in the logs.
1313

1414
It is advised to [clean up old content versions](../../../../fundamentals/data/content-version-cleanup.md) before upgrading. This will make the migration run faster.
1515

16+
## Parallelizing the content migration
17+
18+
It is possible to parallelize the content migration. This will significantly speed up the migration for large sites.
19+
20+
For certain content structures, parallel content migration will fail. Therefore, parallel content migration is strictly opt-in.
21+
22+
If parallel content migration fails, the database state will be rolled back to the last known good state. You can then disable parallel content migration, and try the migration again.
23+
24+
To enable parallel content migration, add an `IComposer` implementation to configure the `ConvertBlockEditorPropertiesOptions` before initiating the upgrade process:
25+
26+
```csharp
27+
using Umbraco.Cms.Core.Composing;
28+
using Umbraco.Cms.Infrastructure.Migrations.Upgrade.V_15_0_0;
29+
30+
namespace UmbracoDocs.Samples;
31+
32+
public class DisableBlockEditorMigrationComposer : IComposer
33+
{
34+
[Obsolete]
35+
public void Compose(IUmbracoBuilder builder)
36+
=> builder.Services.Configure<ConvertBlockEditorPropertiesOptions>(options =>
37+
{
38+
// setting this to true will parallelize the migration of all Block Editors
39+
options.ParallelizeMigration = true;
40+
});
41+
}
42+
```
43+
1644
## Opting out of the content migration
1745

1846
It is strongly recommended to let the migration run as part of the upgrade. However, if you are upgrading to Umbraco versions 15, 16, or 17, you _can_ opt out of the migration. Your site will continue to work, albeit with a certain degree of performance degradation.

0 commit comments

Comments
 (0)