I have a database table like below:
create table temperature (id int unsigned not null auto_increment primary key, temperature double );
An
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.