Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all,

I have a web application which is hosted on remote server and sql server 2012 is installed ove there only. i access the application from some other system over internet. When i do some changes and save the data it takes too much time. How to reduce the time in saving the data.


Regards,
Venga
Posted

In the web application, the user is using a web page with input controls, where the user enter its inputs and then press a "Save" (summit) button. So I see two place of improvement:

1. Because each time time when a summit button is pressed, the entire web page with all its content is send it back to the web server (where the web application is executed), you could optimize this, by using jQuery and AJAX call and by sending only the values of the user inputs.

2. On the server code, when the "Save" method invoked via jQuery and AJAX, you have just to search on the database via ID (or the current entity primary key) the entity that has to be save, then set the values that come as parameter (that should contain the user inputs), and finally save it into the database. To to this you could use Entity Framework, or ADO.NET with stored procedure or SQL commands with parameters.
 
Share this answer
 
Comments
Prasad Khandekar 13-Jun-14 6:14am    
5+
Raul Iloc 13-Jun-14 12:45pm    
Thank you for your vote!
From your question we can't judge the code where your time gets consume.
So, for to develop optimum site you should remember some points.

See below links:-
ASP.NET Optimization[^]
http://msdn.microsoft.com/en-us/library/aa719563(v=vs.71).aspx[^]
http://msdn.microsoft.com/en-us/library/5dws599a(v=vs.71).aspx[^]


or debug your code and find out where it takes more time and post again.
 
Share this answer
 
Comments
mvengaqua 12-Jun-14 1:41am    
the moment i go for saving or updating the data it takes time.
Thava Rajan 12-Jun-14 3:30am    
it also depend upon your network speed too
try to improve your sql query performance, you can find tutorials and guidelines on google.. :)
read this.. :)

Query Performance Tuning (SQL Server Compact)[^]

7 performance tips for faster SQL queries[^]

Improving Query Performance[^]

10 Ways to Improve SQL Query Performance[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900