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
  • 958
  • 3
  • 13
  • 43

3 Answers3

3

You can use Tasks

Asdfg
  • 11,362
  • 24
  • 98
  • 175
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
  • 112,242
  • 44
  • 136
  • 174
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