﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WebForms (How do I?)  » Shared DataTable in web environment</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 09:06:17 GMT</lastBuildDate><ttl>20</ttl><item><title>Shared DataTable in web environment</title><link>http://forum.strataframe.net/FindPost22888.aspx</link><description>Hi,&lt;br&gt;
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?&lt;br&gt;
&lt;br&gt;
Thank you</description><pubDate>Wed, 29 Apr 2009 10:48:07 GMT</pubDate><dc:creator>ChanKK</dc:creator></item><item><title>RE: Shared DataTable in web environment</title><link>http://forum.strataframe.net/FindPost22948.aspx</link><description>Well, this is not a simple question as there are a lot of ways to handle this.&amp;nbsp; First of all, you can set timeouts at the IIS level in regards to the application pool being recycled.&amp;nbsp; 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.&amp;nbsp; 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.&amp;nbsp; But I know that you could tackle this several different ways.&lt;/P&gt;&lt;P&gt;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.&amp;nbsp;</description><pubDate>Wed, 29 Apr 2009 10:48:07 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Shared DataTable in web environment</title><link>http://forum.strataframe.net/FindPost22946.aspx</link><description>Hi,&lt;br&gt;
Thank you for your explanation.&lt;br&gt;
How could I manage its "expiration period"? I would like to cache active employee list which might contains &gt; 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.&lt;br&gt;
&lt;br&gt;
Please advice. Thank you</description><pubDate>Wed, 29 Apr 2009 10:44:52 GMT</pubDate><dc:creator>ChanKK</dc:creator></item><item><title>RE: Shared DataTable in web environment</title><link>http://forum.strataframe.net/FindPost22935.aspx</link><description>You can you create one of these yourself quite easily.&amp;nbsp; As you may already be aware, the BO has the ability to serialize and deserialize out-of-the-box.&amp;nbsp; So if you want to save these sesssions off to disk you can.&amp;nbsp; Now if you are just going to hold these in memory then this is not necessary.&amp;nbsp; In any case, you can create a Dictionary of keys and BOs that are static at the application session level so that they are shared across all sessions.&amp;nbsp; So in the global.asax I would instantiate my dictionary and when a reference is made and a key does not exist, then add one to the cache.&amp;nbsp; You could also load all of them up at the beginning as well.&amp;nbsp; But to do this, just create a static dictionary that is stored off as an application variable and then manipulate the cache as needed during the life of the object.</description><pubDate>Wed, 29 Apr 2009 09:04:07 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Shared DataTable in web environment</title><link>http://forum.strataframe.net/FindPost22914.aspx</link><description>Hi,&lt;br&gt;
Thank you.&lt;br&gt;
If I would like implement cache to these "common" Business Object data, any recommended caching tool/framework?&lt;br&gt;
&lt;br&gt;
Thank you</description><pubDate>Tue, 28 Apr 2009 11:22:35 GMT</pubDate><dc:creator>ChanKK</dc:creator></item><item><title>RE: Shared DataTable in web environment</title><link>http://forum.strataframe.net/FindPost22890.aspx</link><description>In a web environment you are better off create an application BO versus creating a shared data table.&amp;nbsp; This would be due to primarily the session states.&amp;nbsp; But if you are wanting to share a BO across all user sessions, then create an application level BO instance versus a shared data table.</description><pubDate>Mon, 27 Apr 2009 07:48:43 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>