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!
The Laravel portal for problem solving, knowledge sharing and community building.
The community