I have a Windows service developed in C#. This service imports data from XML files into a SQL Server database, into different tables. These XML files are large. A particular file of 500 MB size 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 back end of this application. This application shows different reports by filtering related records from tables of this database. This application also manipulates the records as well.
When I run the application to interact with database during the XML file import by the Windows service, then my web application hangs and after a long time a timeout error occurs.
I am using simple insert update commands in stored procedures in the Windows service and there are no transactions in those stored procedures.
Please advise any solution to avoid this issue.