Hi
I am working on a .NET 4.0 console application. Applications reads data from a text file and updates / inserts the data in the database. Text file has around 4000 records and it takes around 3 minutes to Sync the data.
Now the database server is moved to a different location and now the Sync operations takes more than an hour to insert/update all the records in the text file.
I store all the records in the text file in a list object and use for loop to insert / update rows one by one to the database.
Is there a way to do bulk update or reduce the time taken to establish and close the connection?
Can you please suggest some options to improve the performance of the application so that the time taken to Sync can be reduced?
Thanks
Ashok