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.
Problem/Motivation
Follow-up from #2503999-32: Large volume entity migrations run out of memory
Core maintainer comment https://www.drupal.org/node/2503999#comment-10266631
+++ b/core/modules/migrate/src/MigrateExecutable.php
@@ -568,7 +568,17 @@ protected function attemptMemoryReclaim() {
+ // Entity storage can blow up with caches so clear them out.
+ $container = \Drupal::getContainer();
+ /** @var \Drupal\Core\Entity\EntityManagerInterface $manager */
+ $manager = $container->get('entity.manager');
There's \Drupal::entityManager()
for that
Proposed resolution
Use \Drupal::entityManager()
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#2 | clean_up_migrate-2559191-2.patch | 732 bytes | andriyun |
|
Comments
Comment #2
andriyun CreditAttribution: andriyun at Skilld commentedComment #3
andriyun CreditAttribution: andriyun at Skilld commentedComment #4
andypostthanx for filing new issue
Comment #5
mikeryanComment #6
webchickThanks, that's a nice clean-up!
Committed and pushed to 8.0.x. Thanks!