.net - ASP.Net Web Services Response Time Slow -


we using asp.net web services.

the architecture desktop based application developed in .net 3.5 - client app (client machine) asp.net based web service in .net 3.5 - business logic layer (iis on server) sql 2005 database - database layer (same or different server iis)

the application developed , going in first implementation. on day 1 have faced show stopper issue. have loaded database of patient's 30000 records , response time of patient search screen more 20 seconds. have indexed database , removed unncessary calls a. client web service b. web service database. still response time 7 seconds not acceptable has got down under 3 seconds. main problem see 4 seconds being taken part in web service returns data of such size on network client.

what solution this?

if search queries return large result sets, consider adding paging functionality webservice calls.

it seems unlikely user review 250 (or arbitrary number > 10) patients @ single glance. instead of method returns 250, return them in in sets of 10. you'll have change signature web methods bit though.

this reduce network payload.

you cache search results on server, avoid running expensive queries often.

this part of solution there many other options!

good luck!


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -