I have a vb.net system and I want to insert 10,000 or more records from datagridview to mysql database. But it takes 8mins for 10,000 records when i tried this
MySQL allows insert multiple set-of-rows in single insert command. Create a string in following formation:
INSERT INTO yourTable(c1,c2,c3) VALUES (r1v1,r1v2,r1v3), (r2v1,r2v2,r2v3), (r3v1,r3v2,r3v3), . . . (rNv1,rNv2,rNv3)
This command inserts multiple rows.