• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 277
  • Last Modified:

Improving performance when calling webmethods from a service reference

Hi There

I am writing an application that calls webmethods from an service reference.
My problem is that I have to make numerous calls to the same data and some results are very large and take along time to come down from the webservice.

I would like to implement a solution that will allow me to make the data calls only once if possible when the application loads and then work from the data that is loaded in memory.
I am not really sure how to do this so if anybody can point me in the right direction it will be extremmelly appreciated.I just need to get it alot faster

I have attached a image what what the service references look like.
servref.jpg
0
Stanton_Roux
Asked:
Stanton_Roux
  • 2
1 Solution
 
masterpassCommented:
I would like to implement a solution that will allow me to make the data calls only once if possible when the application loads and then work from the data that is loaded in memory >>>>>>>>>.

I think its a bad idea as like you said your data are so heavy that it takes some time to load. When you push every thing to the initial load, the initial load is gonna take the suffer. I t will take more time to load all the data. But still if you want to go with it, you can make use of the Cache .. you can store all the data like

Cache["data"] = your data

If you are worrying about improving performance of your web methods try to pass the data as JSON. It is a very light weight and very efficient.

NB: The initial load should take as much less time as possible as the users will be frustrated if it is going to take more time.
0
 
Stanton_RouxAuthor Commented:
Thanks for the info.

Unfortunately I do not have control of the output type of the webmethods as these are created by an external vendor.

Do you perhaps know of any websites or source code libraries that I can use to do some research into this
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now