@Sureshkumar not sure what the question is?
Can you post some code as well, as in how you're inserting these 30k records? It shouldn't take that long, no. Are you sure you're not doing 30k queries in a loop?
I need to insert more than 100000 records from one of the SOAP response.
I used Laravel eloquent and it took much time, after watching Laracasts https://laracasts.com/series/how-to-build-command-line-apps-in-php, I started to migrate the codes to CLI, and I got very good improvements. I used PDO as he explained in video. It took 30 seconds to insert 30000 records. Then I come back to Laravel and used its 5.1 Command, to rewrite same code, and I used DB facade here.
Issue is, how do I get last inserted id from DB::insert() method?
If you suggests,
$id = DB::table('table')->insertGetId($params);
Then the issue is it took 90 seconds to insert 30000 records.
What are you suggesting me, since I am aware of performance and speed.
Please or to participate in this conversation.