I have a Flat file size >1GB. I need to parse the file and insert into DB.
Method 1: Parsing and convert the flatfile to csv. and then use a bulk insert in sql.
Problem:
Using async for file read, I am thrown System.OutOfMemoryException
It takes nearly 30 minutes (depends of the size) to do so.
Do I need to use efficient use of data structures to reduce the time or any other efficient methodologies ?