- Issue created by @van.dordafog
this works when migrating from D7 paragraphs (not with field collection).
it also improves the dependency requirements between the migration but might not fix the erroneously created stubs
Generating migration from D7 to D10 with
migrate_upgrade →
creates migrations that do lookup over all Paragraphs not just the type possible for the relevant field.
For the paragraphs revisions migrations the id is also looked up over all paragraphs.
On systems with many paragraphs types this leads to substantial performance hit during migration.
Change the ID lookup in paragraphs revisions from
plugin: paragraphs_lookup
tags:
- 'Paragraphs Content'
source: item_id
to
plugin: paragraphs_lookup
migration: [the_relevant_main_migration_of_this_paragraphs_revisions]
source: item_id
and
change the lookup in fields referencing paragraphs from checking all paragraphs to only the ones that are allowed types for the field.
Active
1.16
Code
this works when migrating from D7 paragraphs (not with field collection).
it also improves the dependency requirements between the migration but might not fix the erroneously created stubs