<?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>Sun, 12 Apr 2026 04:40:02 -700</pubDate>
  <lastBuildDate>Fri, 12 Mar 2010 10:03:02 -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=1679</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 : In the Business Object Persistence...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1679&amp;PID=6353#6353</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 1679<br /><strong>Posted:</strong> 12-Mar-2010 at 10:03am<br /><br /><DIV>In the <EM>Business Object Persistence </EM>topic document, see the following sections:</DIV><UL><LI>Stale Entity Data</LI><LI>Query Workflow</LI><LI>Query Strategy</LI><LI>Fetch Strategies</LI><LI>Merge Strategies</LI></UL><DIV>In the <EM>Business Object Persistence - Advanced </EM>topic document, see:</DIV><UL><LI>Forced Re-Fetch</LI><LI>Merge Strategy in More Detail</LI></UL><DIV>&nbsp;</DIV><DIV>There also is a Push Notification code sample, with accompany documentation, in the Learning Resources at </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp; LearningResources\050_BusObjServer\Samples\300WNF_ServerPushNotification</DIV><DIV>&nbsp;</DIV><DIV>although, as I say, this facility is not currently available for Silverlight.</DIV>]]>
   </description>
   <pubDate>Fri, 12 Mar 2010 10:03:02 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1679&amp;PID=6353#6353</guid>
  </item> 
  <item>
   <title>Expire Query Cache : Thanks for the reply.   We are...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1679&amp;PID=6352#6352</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> 1679<br /><strong>Posted:</strong> 12-Mar-2010 at 7:38am<br /><br />Thanks for the reply.&nbsp; <DIV>&nbsp;</DIV><DIV>We are a SmartClient framework accessing a legacy ERP systems database.&nbsp; Updates to the database can happen from many different sources outside of our SmartClient so we are needing the cache to periodically check to see if it has been updated.&nbsp; So the Business Object Server requerying the database at a specific interval to determine if entities have changed is what we are looking for, are there any examples of this or a spot in the documentation that you can point me to to help me out.</DIV><DIV>&nbsp;</DIV><DIV>Thanks,</DIV><DIV>Kurt</DIV>]]>
   </description>
   <pubDate>Fri, 12 Mar 2010 07:38:44 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1679&amp;PID=6352#6352</guid>
  </item> 
  <item>
   <title>Expire Query Cache : Removal probably isn&amp;#039;t what...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1679&amp;PID=6350#6350</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=21" rel="nofollow">IdeaBlade</a><br /><strong>Subject:</strong> 1679<br /><strong>Posted:</strong> 11-Mar-2010 at 7:05pm<br /><br />Removal probably isn't what you would want in any case, because plucking an Entity out of the cache when other things potentially have active references to it could cause many different kinds of disruption.<br><br>What might be desirable, on the other hand, would be to have the entities updated in place. That's exactly what we do when you retrieve copies of entities you already have in the cache (using EntityQueries, Refetch, navigation, or any other mechanism for data retrieval).&nbsp; We make a number of different MergeStrategies available for doing this, but the default is that we will update the existing entity in the cache as long as it doesn't have unsaved changes.<br><br>We don't supply a setting on the EntityManager to do this automatically, but we do provide a number of mechanisms that permit you to accomplish what you want. In general it's good to be as specific as possible about what you really need refreshed, as it's not hard to impair performance if you're a bit too gratuitous in retrieving and re-retrieving data.<br><br>On platforms other than Silverlight, we have a push notification facility that allows you to invoke a method on the Business Object Server which then stays alive and does any operation you need, such as requerying the database at a specified interval, determining if any entities have changed, and then calling the client to let it know that they have. When we implemented push, the necessary infrastructure wasn't available in Silverlight. It now is, but we simply haven't gotten back around to push for that platform yet. It's on our list.<br><br>It's often not the best solution in any case. You (the developer) can generally figure out which entities go stale at what intervals, or in which parts of the application (and when the user does what) those entities need to be brought into currency. If you're writing on online ticket sales application, for example, you'd surely want to provide current data to the sales clerk about what seats remain unsold when she's talking with a customer. But you could give her a button to demand that when a customer inquires about a given event, for example.<br><br>So, lots of mechanisms. If you like, say more about your use case and perhaps we can suggest a specific strategy.<br>]]>
   </description>
   <pubDate>Thu, 11 Mar 2010 19:05:02 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1679&amp;PID=6350#6350</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=1679&amp;PID=6343#6343</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> 1679<br /><strong>Posted:</strong> 10-Mar-2010 at 2: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><span style="font-size:10px"><br /><br />Edited by kpinniger - 10-Mar-2010 at 2:21pm</span>]]>
   </description>
   <pubDate>Wed, 10 Mar 2010 14:20:38 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1679&amp;PID=6343#6343</guid>
  </item> 
 </channel>
</rss>