php - Quickest way to Insert mass data Into Mysql database -


i have list of 100,000 records i'd insert mysql database.

i have tried insert them foreach , simple insert into took lot of time insert 100 row. 1 second / row.

is there method insert these rows faster?

using 1 insert statement multiple rows faster 1 insert statement per row. reduce calls database.

example:

 insert tbl_name (a,b,c) values(1,2,3),(4,5,6),(7,8,9); 

Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -