I have a database table like below:
create table temperature
(id int unsigned not null auto_increment primary key,
temperature double
);
An
you can use the concept of bulk insert which executes many inserts at the same time minimizing overhead of calling ExecuteNonQuery multiple times.
in MySQL this is called LOAD DATA, check here for details: http://dev.mysql.com/doc/refman/5.5/en/load-data.html
in MS SQL Server this is called bulk insert and it's known as such, that's why I've mentioned it with this name.