Can we cache a DataView for a Session?

Can we cache a DataView for a Session?

Post by Vishal Punjab » Wed, 24 Oct 2001 02:59:13



I get some data over the network and store it in a dataview.
Then I bind my datagrid with this dataview. If the user wants to sort the datagrid I don't want to retrieve the data again from the network instead I just want to cache it on my web server. What is the easiest way to cache this dataview?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

 
 
 

Can we cache a DataView for a Session?

Post by Venkat Chilakala ( » Wed, 24 Oct 2001 07:27:04


You can cache the dataset in the Cache and re use it. Have a look at the
Cache Object's Insert,Add methods which will give more flexibility on how
long you can cache it etc.

Thanks
Venkat Chilakala

This posting is provided AS IS with no warranties, and confers no rights.
You assume all risk for your use. ? 2001 Microsoft Corporation. All rights
reserved.

--------------------

X-Newsreader: AspNNTP 1.50 (ActionJackson.com)
Subject: Can we cache a DataView for a Session?
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

Newsgroups: microsoft.public.dotnet.framework.aspnet
Date: Mon, 22 Oct 2001 10:59:13 -0700
NNTP-Posting-Host: 63.84.175.221
Lines: 1        
Path: cppssbbsa01.microsoft.com!tkmsftngp01!tkmsftngp03
Xref: cppssbbsa01.microsoft.com
microsoft.public.dotnet.framework.aspnet:15916
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

I get some data over the network and store it in a dataview.
Then I bind my datagrid with this dataview. If the user wants to sort the
datagrid I don't want to retrieve the data again from the network instead I
just want to cache it on my web server. What is the easiest way to cache
this dataview?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

 
 
 

1. Size of DataSet,DataView in ASP Cache

There doesn't seem to be any easy way to tell how much memory is used to
store an object in ASP.NET Cache.  Are there any general rules of thumb
about which representation of a table will use the least amount of memory to
store?

I'm locked into receiving the data in a single table DataSet and in the end
I am binding the table to a list control so I need a DataView, a DataSet or
some type of Collection.  However, I can store it in cache any way I like
and build these sturctures when I retrieve it. So, for example, I could
store it as XML. Does anyone know how to figure the amount of memory needed
to store a DataSet or a DataView?  Are they relatively efficient in their
use of memory? The XML I can easily measure but it's not known to be an
efficient storage structure.  Is there a structure which would offer a
smaller memory size than the DataSet or DataView without incurring
significant processing time to change representations?

2. amstrad mega pc 386 help needed

3. Is there a way to set cache expiration without using Cache.Add or Cache.Insert methods?

4. Creating Satellite DLLs

5. How do I intercept canned data validation messages

6. Reverse DNS

7. Difference between Cache & Session.

8. DHCP server lease

9. How to Save VB .NET variable into ASP .NET Website Session or Cache?

10. Cache object vs Session,Application state for datagrid

11. Caching and Session Management

12. cache vrs application / session objects

13. cache is uniq to application or session ?