Shared DataTable in web environment


Author
Message
ChanKK
ChanKK
Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)
Group: Forum Members
Posts: 190, Visits: 1.3K
Hi,

I would like to use shared data table so that every session shared the same data. May I know any thing I need to taken into consideration while using it?



Thank you
Replies
ChanKK
ChanKK
Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)Advanced StrataFrame User (622 reputation)
Group: Forum Members
Posts: 190, Visits: 1.3K
Hi,

Thank you for your explanation.

How could I manage its "expiration period"? I would like to cache active employee list which might contains > 10,000 records. I can cache it using static variable and so, but everyday also might have new join and resign employee. Therefore, I need to refresh it intervally. That is the reason I looking for caching mechanism.



Please advice. Thank you
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Well, this is not a simple question as there are a lot of ways to handle this.  First of all, you can set timeouts at the IIS level in regards to the application pool being recycled.  So this is when you may want to cache the BOs to a database so that they can be retrieved in their state prior to being disposed.  This is not something that I can give you a straight answer on without first setting something like this up and playing with it a while.  But I know that you could tackle this several different ways.

This is why I was mentioning the serialization so if you had the need to save off the state and then restore a state between sessions. 

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search