So I need to update some over 1 million records from an asp.net web forms project in the code behind with a data given in a TextBox
. I tried to do that with LINQ but that takes to long...
1st Question: What is the best solution?
I noticed that if I run the update in SQL (MSSQL) it only takes 20-30 seconds and that is an acceptable time.
2nd Question: Should I create procedures in SQL and import them in my project and call the procedures ? Will that give me a much better time? Basically, will using imported procedures bring the time down to close to the time needed for that query to run in SQL?