I have a windows service developed in C #. This service imports data from XML files into a SQL Server database in different tables. These XML files are large. A specific 500 MB file takes more than 1 hour to import into tables with millions of rows.
I have a web application developed in ASP.NET MVC, the above database is at the end of this application. This application shows different reports by filtering related records from tables in this database. This application also processes records.
When I run an application to interact with the database while importing the XML file by the Windows service, my web application freezes and a timeout error occurs after a long time.
I use simple insert update commands in stored procedures in a Windows service, and there are no transactions in these stored procedures.
Please report any solution to avoid this problem.
Ahmad source
share