You can split with array_chunk() into 100 record chunks and in each loop report. But 2 million is about 4 times larger than the largest I've done.
Server Timeout
I have to import large amounts of data 2million records approx, split into 750k chunks.
I need to compare the import from a CSV against the DB and insert if unique, however this can take over 30 mins.
What's the best approach to do this and report on the progress at the same time?
Does anyone have any experience or can aomeone point me in the right Laravel direction?
Currently it seems that once the process is started in PHP the timer starts also, I thought there might be a way to reset the timer and report on status every 100 records or so.
I've used a commercial site that seems to do this as I see a spinning wheel reload every n seconds in the browser tab ( unless that's just an animated gif :( )
Please or to participate in this conversation.