We had a similar problem with installing Drupal 7. It remains to run the entire output year on import, and it imported only 1000 lines of the file.
The funny thing is that exactly the same import to a pre-production machine took 90 minutes.
We have finished comparing the source code (make sure that we are in the same commit in git), the database schema (identical), the number of nodes on each machine (not identical, but similar) ...
The long story is made short, the only significant difference between the two machines was the max_execution_time option in the php.ini settings php.ini .
The production machine had max_execution_time = 30 , and the preprocessing machine had max_execution_time = 3000 . It seems that the migration module has a kind of system for processing the "short" max_execution_time , which is less than optimal.
Conclusion : set max_execution_time = 3000 or more in php.ini , which helps a lot in the migration module.
source share