0

I have created a simple web app to Import data from excel to database. Excel sheet has millions of records if i Transfer these records then it takes time 10 to 15 minutes. But I want to create back end process which will never kill till complete.

Please suggest me solutions.

Xulfee
  • 940
  • 2
  • 13
  • 43

3 Answers3

3

You can use Tasks

Asdfg
  • 10,383
  • 23
  • 89
  • 160
2

MSDN has some articles on Asynchronous Programming Design Patterns, which describes some methods to accomplish this is C# 4.0+. The new Parallel features (Await/Task) in C# 5.0+ are something to keep up to date on as well.

Community
  • 1
  • 1
Jon Erickson
  • 107,872
  • 44
  • 134
  • 170
0

I would create a separate service (or program if that's easier for you) that checks for a new file every few seconds.

Tengiz
  • 1