Wed, 10/25/2017 - 13:35

Migrate large amounts of data in Laravel with Artisan Console and Chunk

Submitted by markoshust Wed, 10/25/2017 - 13:35

I've recently had to create a script to migrate a large amount of data post-deployment. This presented a couple issues; one being that the script needed to be performant, another being that since it took at least a few minutes to run on a couple hundred thousand rows, I needed to display the status of the script for devops so it didn't appear to be hungup or failed.