2
Answers

How to save large data in Database from c# Windows App

Suraj Kumbhar

Suraj Kumbhar

7y
309
1
hello guys,
I am working on ERP project which is being developed in C# Windows Form Application. It is multi-tier application which has UI,Business,Data Access, Data & property layer. When I try to save data like 4 items at a time. It's taking 2.5 seconds time to execute layer in folowing order.
UI --> Business --> DataAccess .
But when it comes to Data Layer it takes more than 6-7 seconds for completing saving process. I am optimizing code which has done by my seniors. I have attatched a sample code file which consist a Save function in Data layer. Please go through it and suggest what code changes should I do to work it faster.
Thanks & Regards,
Suraj 

Attachment: samplecode.rar

Answers (2)
1
Shakti Singh Dulawat

Shakti Singh Dulawat

NA 6.4k 127k 7y
Data store in DB is depend on network too, where is your database , are you using local database on your machine?
0
Suraj Kumbhar

Suraj Kumbhar

NA 36 1.7k 7y
I am using Local datatbase only on my machine