How to insert a very large number of records into a MySql database as fast as possible

后端 未结 4 493
庸人自扰
庸人自扰 2020-11-30 15:00

I have a database table like below:

create table temperature
(id int unsigned not null auto_increment primary key,
temperature double
);

An

4条回答
  •  甜味超标
    2020-11-30 15:31

    You should do bulk inserts. The ADO.NET way to do it is by using a DataAdapter.

    For a MySQL specific solution, use the MySqlBulkLoader.

提交回复
热议问题