Support the ongoing development of →
Requests Database Eloquent
Last updated 2 years ago.

In full disclosure, I don't know anything about this. But I am interested to know how to do this. Looking at the code, perhaps the chunk itself should be converted to an array?

MyModel::insert($chunk->toArray()); //insert chunked data

Thank bigwheel16! This worked very well as was very fast, but I had to limit the $qty allowed per request. On my server, I found that number to be around 250,000.


Sign in to participate in this thread!


Your banner here too?


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.