Advertisement

07.14.2008 at 12:15PM PDT, ID: 23563834
[x]
Attachment Details

GridView populates in 1 second on local pc / ~7 seconds on shared server hosting.  Normal?

Asked by DelphiMan7 in Web Application Hosting, Programming for ASP.NET, Asynchronous Javascript and XML (AJAX)

Tags: Microsoft, ASP.Net C# with SQL Server 2005, 3.5

I've written a C# ASP.Net 3.5 Web Application that uses Microsoft Ajax and a SQL Server 2005 database.  It uses an ObjectDataSource and does the paging in a stored procedure.  

From clicking a button to showing the populated gridview with the 1st 25 records in the table takes around 1 second on my local pc, but around 7 seconds on a shared server hosting account.  

The host has a seperate dedicated SQL Server 2005 box (shared with around 100 users) so I've tried running the underlying query in my local copy of SQL Server Management Studio Express connected to the remote database and it takes less than a second to run the same query.  So it doesn't look like the database is at fault.  

When serving pages without any processing it appears within a second, so it doesn't seem to just be a case of a slow host.  

Is there anything I should try changing in the web config that could speed it up?  

Allowing 1 second to run the query and 1 second to send the data over the wire, 5 seconds seems a long time to be processing.  

I only have 4.5% share of the CPU and I'm not sure how much Ram, so perhaps it just doesn't have enough resources to run quickly.  

If I do need to go for a dedicated server, should SQL Server 2005 Express run ok on a server and give good performance with moderate traffic?  

Start Free Trial
[+][-]07.14.2008 at 12:26PM PDT, ID: 22001181

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.14.2008 at 12:59PM PDT, ID: 22001504

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 01:13AM PDT, ID: 22004947

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Web Application Hosting, Programming for ASP.NET, Asynchronous Javascript and XML (AJAX)
Tags: Microsoft, ASP.Net C# with SQL Server 2005, 3.5
Sign Up Now!
Solution Provided By: G0ggy
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628