Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / November 2004

Tip: Looking for answers? Try searching our database.

Performance tuning in web service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nirajshah - 15 Oct 2004 15:17 GMT
I am using a web service for retrieving the data  from SQL Server
table having 29,000 records in a datagrid placed on the windows form
in .net. It takes about 36 seconds to retrieve the data eventhough
the service is running on a local computer. Without using service ,
the data is fetched within 5 seconds. So in this case what can I do
to reduce the time taken using the web service ?
Ken Dopierala Jr. - 17 Oct 2004 04:30 GMT
Hi,

When you retrieve the data without using the webservice are you going
straight to SQL Server?  If so, here is what I'm thinking:

1.   SQL is doing the query pretty fast and dishing it back to you.  The
dishing probably takes a little over 4 seconds.
2.   In a perfect world, using the web service, you should get the data in a
about 10 seconds.  We can't expect the WS to dish the data after the query
processes faster than SQL.
3.   The web service must serialize the data into XML.  This increases the
size big time.

So here is where we are at:

The serialization is going to take much longer than the query.  The dishing
of the serialized data is going to take much longer.

Here is how I would solve this problem:

First, I would time the operations to see which ones are taking the longest.
Second, I would either fix, or find new solutions to these problems.

Time your calls and see where the extra 26 seconds is occuring.  Once you
know that, report back and let's sit down and figure out a solution.  Good
luck!  Ken.

Signature

Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

> I am using a web service for retrieving the data  from SQL Server
> table having 29,000 records in a datagrid placed on the windows form
> in .net. It takes about 36 seconds to retrieve the data eventhough
> the service is running on a local computer. Without using service ,
> the data is fetched within 5 seconds. So in this case what can I do
> to reduce the time taken using the web service ?
Arnthor - 10 Nov 2004 11:17 GMT
Hi Nirajshah

Are you allowing anonymus access to the webservice or are you using windows
security mechanism?  If you are that puts a big performance cost on your
webservice.  One way around it is doing the following:

wsProxy.UnsafeAuthenticatedConnectionSharing = true;
wsProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
wsProxy.ConnectionGroupName = [windowsusername];

Br.
Arnthor

> I am using a web service for retrieving the data  from SQL Server
> table having 29,000 records in a datagrid placed on the windows form
> in .net. It takes about 36 seconds to retrieve the data eventhough
> the service is running on a local computer. Without using service ,
> the data is fetched within 5 seconds. So in this case what can I do
> to reduce the time taken using the web service ?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.