HighTechTalks DotNet Forums  

Cache vs Session,Application state for datagrid

Dotnet Framework (Performance) microsoft.public.dotnet.framework.performance


Discuss Cache vs Session,Application state for datagrid in the Dotnet Framework (Performance) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Marisha
 
Posts: n/a

Default Cache vs Session,Application state for datagrid - 03-02-2006 , 10:27 AM






Hi Guys,

I have a question,what is the best way to preserve dataset in web
application:
Cache object,Session or Application state.
Quote:
From perfomance,scalability point of view?
Any ideas?

Thanks,

Marina



Reply With Quote
  #2  
Old   
Vadym Stetsyak
 
Posts: n/a

Default Re: Cache vs Session,Application state for datagrid - 03-03-2006 , 06:19 AM






Hello, Marisha!

M> I have a question,what is the best way to preserve dataset in web
M> application:
M> Cache object,Session or Application state.
??>> From perfomance,scalability point of view?
M> Any ideas?

I assume that dataset is valid for secial session? if so you can use Session.
If dataset is application wide you can store it in some static property, or static suctom cache object.(smth like static hashtable)

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com

Reply With Quote
  #3  
Old   
Marisha
 
Posts: n/a

Default Re: Cache vs Session,Application state for datagrid - 03-03-2006 , 10:24 AM



Hi Vadym,
Thanks fro you reply,
I used session and cache object for storing dataset that fills datagrid
and both give me out of memory exception when i try to edit some row in
a datagrid that has 900+ rows.
Is 900+ is to much to handle for the grid?


Reply With Quote
  #4  
Old   
Vadym Stetsyak
 
Posts: n/a

Default Re: Cache vs Session,Application state for datagrid - 03-03-2006 , 10:32 AM



Hello, Marisha!

M> Hi Vadym,
M> Thanks fro you reply,
M> I used session and cache object for storing dataset that fills datagrid
M> and both give me out of memory exception when i try to edit some row in
M> a datagrid that has 900+ rows.
M> Is 900+ is to much to handle for the grid?

Hard to tell, it depends also on column number...

OTOH why do you have to store the dataset of such size?

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com

Reply With Quote
  #5  
Old   
Marisha
 
Posts: n/a

Default Re: Cache vs Session,Application state for datagrid - 03-03-2006 , 02:50 PM



I have about 15 columns.
On average I have about 30-50 rows in dataset.
It's very rarely that I have so bulky data,but if I have it,I need to
be able to handle it..


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.