Problem/Motivation
#3208681: Transform <img> tags used in formatted text fields to media embed or entity embed tokens and Linkit file links to D9 linkit links for every entity type is great but \Drupal\media_migration\Utility\SourceDatabase::getFormatsUsingTag() does not scale to
Steps to reproduce
Use a Drupal 7 source site with 100 node types and 20 text fields on nodes.
Proposed resolution
Add static caching.
Drastic performance improvement: generating the list of migration plugins now takes ~25 seconds instead of >10 minutes (unknown how long exactly).
Remaining tasks
None.
API changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 3214825-8.patch | 1.1 KB | wim leers |
Comments
Comment #2
wim leersComment #4
wim leersComment #5
huzookaComment #6
huzookaI know that it's an edge case, but I would rather see an array filter here instead of using default values when
$source_entity_type_idand/or$source_bundleare empty.Comment #7
huzookaComment #8
wim leersSure thing!
Comment #10
huzookaComment #11
huzooka