<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Expire Query Cache</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Expire Query Cache</description>
  <pubDate>Thu, 21 May 2026 12:55:09 -700</pubDate>
  <lastBuildDate>Mon, 23 May 2011 17:17:27 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=1680</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Expire Query Cache : KPinniger, there is no automatic...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1680&amp;PID=10799#10799</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1097" rel="nofollow">robertg</a><br /><strong>Subject:</strong> 1680<br /><strong>Posted:</strong> 23-May-2011 at 5:17pm<br /><br />KPinniger, there is no automatic way to do that, though you could certainly add a timestamp field to the entity, then before you use it, do a query to find and remove anything older than the desired period of time. (Alternately, you can just keep track of when your cache was generated, and replace the entire thing when the amount of time in question has passed.) <DIV></DIV><DIV>&nbsp;</DIV><DIV>Paul, you may want to look into using&nbsp;a projection in order to limit the amount of data being returned to your client, so you are only transmitting/caching the entities that you're actually going to use. We have an article in the DRC which talks about doing this, <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/query-an&#111;nymous-projecti&#111;ns" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/query-anonymous-projections</A>. </DIV><DIV>&nbsp;</DIV><DIV>Also, as to the Clear() functions; doing so should mark that memory as available for reclamation, when .NET does its garbage collection. If you use RemoveEntities() instead, it does so right away.</DIV><span style="font-size:10px"><br /><br />Edited by robertg - 23-May-2011 at 5:22pm</span>]]>
   </description>
   <pubDate>Mon, 23 May 2011 17:17:27 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1680&amp;PID=10799#10799</guid>
  </item> 
  <item>
   <title>Expire Query Cache : I too would like to know if this...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1680&amp;PID=10726#10726</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1156" rel="nofollow">tooms</a><br /><strong>Subject:</strong> 1680<br /><strong>Posted:</strong> 17-May-2011 at 3:06pm<br /><br />I too would like to know if this is possible.<DIV>&nbsp;</DIV><DIV>Our applications database can become quite large and on occassion a query may return 100k+ records which has a detremental affect on the system (performance and memory use) and we'd like a way to expire this cache.</DIV><DIV>&nbsp;</DIV><DIV>Additionaly, is there a way to easily the number of entities returned and then intelligently decide if they should be cahced or not? Perhaps off the back of a dialogue box?</DIV><DIV>&nbsp;</DIV><DIV>I'd also like to know how to appropriately clear the cache, is it enough to say QueryCache.Clear() and/or DataSet/Clear() .. ? I notice when I do this, no memory is freed up from the application.</DIV><DIV>&nbsp;</DIV><DIV>Cheers,</DIV><DIV>Paul Twomey</DIV><DIV>MEX</DIV>]]>
   </description>
   <pubDate>Tue, 17 May 2011 15:06:52 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1680&amp;PID=10726#10726</guid>
  </item> 
  <item>
   <title>Expire Query Cache : Is there a setting on the EntityManager...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1680&amp;PID=6344#6344</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=717" rel="nofollow">kpinniger</a><br /><strong>Subject:</strong> 1680<br /><strong>Posted:</strong> 10-Mar-2010 at 6:20pm<br /><br /><P>Is there a setting on the EntityManager to remove an Entity from the cache after x amount of time?&nbsp; Basically we know that the data might change during the day and we would like the cache to get invalidated after say 30 minutes.&nbsp; </P><DIV></DIV><DIV></DIV>Thanks, <DIV>Kurt Pinniger</DIV><DIV>CDC Software</DIV>]]>
   </description>
   <pubDate>Wed, 10 Mar 2010 18:20:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1680&amp;PID=6344#6344</guid>
  </item> 
 </channel>
</rss>