Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Thoughts
Message
From
27/04/2004 20:39:54
 
 
To
27/04/2004 20:30:49
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00898135
Message ID:
00898774
Views:
20
>>When you say cached, what do you mean? How is that done?<

We do this for certain DataSets that don't change often and are used, among other things, for populating combos. We grab the data in the usual way at application start-up (through a Web Service), then we store an XML version of those DataSets locally on the workstation. If the codes haven't changed since the last time the app was started, then we don't even bother hitting the back-end to get the data, we just instantiate the DataSets and fill them with the XML that already exists locally. In addition to that, these DataSets have static methods in them so that they can be used everywhere in the app without filling the DataSet up each time we need it for combos.

Does that answer your question?

~~Bonnie

>
>
>
>>Yep, ok ... we do a similar thing (caching static datasets for combos/dropdowns). But, all the data is retrieved and cached at program startup ... and it still goes through a Web Service to get it. The UI still never accesses the data access layer directly, just the static datasets.
>>
>>~~Bonnie
>>
>>
>>>I use a helper class that deals with all the picklists. Afterwards, this static data is cached for future use. I use this approach for speed considerations, since i dont want to go thru n layers to get some static data.
>>>
>>>Vlad
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform