Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Using MigrateSourceJSON
as source class to import a huge chunk of data from an API we noticed that every time migrate_ui_batch();
reloads the Migration::getInstance($machine_name);
to get the next layer of records to import, it was losing the source pointer called $active_url
(plugins/sources/json.inc), this way the migrate was looking into all the sources again from the beginning. In order to avoid this situation we decided to storage this pointer inside a variable_get();
, it might not be the best approach but solves it.
Comment | File | Size | Author |
---|---|---|---|
#2 | active-url-json-2701095-1.patch | 1.72 KB | gabrielmachadosantos |
|
Comments
Comment #2
gabrielmachadosantos CreditAttribution: gabrielmachadosantos at CI&T for Pfizer, Inc. commentedComment #3
pifagorComment #5
pifagorComment #7
joseph.olstadhttps://www.drupal.org/project/migrate/releases/7.x-2.12