darylbewise
Programmer
I am trying to create a feed (csv, txt etc) processor that will do the following:
1. Run through each feed line by line
2. Make any required alterations to the values located within the feeds (if required at all)
3. Save each line in turn into a MS SQL database
The first two points above work really efficiently. I am using a really quick CSV Reader ( to loop through each feed.
My problem begins with point 3 above. What is the most efficient way to save to the MS SQL database? Currently this seems like a huge bottle neck im my application.
I have tried to reduce the amount of database calls, for example:
1. save all into an array and bulk upload to the database - the array size becomes far too large to actually hold in memory
2. save all values to a csv file and bulk upload the entire csv file to the database - still takes far too long to execute.
Any ideas would be much appreciated.
1. Run through each feed line by line
2. Make any required alterations to the values located within the feeds (if required at all)
3. Save each line in turn into a MS SQL database
The first two points above work really efficiently. I am using a really quick CSV Reader ( to loop through each feed.
My problem begins with point 3 above. What is the most efficient way to save to the MS SQL database? Currently this seems like a huge bottle neck im my application.
I have tried to reduce the amount of database calls, for example:
1. save all into an array and bulk upload to the database - the array size becomes far too large to actually hold in memory
2. save all values to a csv file and bulk upload the entire csv file to the database - still takes far too long to execute.
Any ideas would be much appreciated.