<?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 : Cache and Related Entity (Lists)</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Cache and Related Entity (Lists)</description>
  <pubDate>Thu, 15 Oct 2026 15:00:41 -700</pubDate>
  <lastBuildDate>Tue, 05 Jul 2011 09:11:22 -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=2813</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>Cache and Related Entity (Lists) : Hi Markus,You can explicitly set...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2813&amp;PID=11176#11176</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2813<br /><strong>Posted:</strong> 05-Jul-2011 at 9:11am<br /><br />Hi Markus,<div></div><div></div>You can explicitly set the EntityReferenceStrategy to DoNotLoad:<div>&nbsp;</div><div><font face="Courier New, Courier, mono">CodeEntity.PropertyMetadata.CodeTyp2List.ReferenceStrategy = <span style="color: rgb0, 0, 255;">new </span>EntityReferenceStrategyEntityReferenceLoadStrategy.DoNotLoad, MergeStrategy.OverwriteChanges);</font></div><div>&nbsp;</div><div>There's a topic in the <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/navigati&#111;n-properties-data-retrieval" target="_blank">DevForce Resource Center</a> that will provide you with details.</div><div>&nbsp;</div><div>Regards,</div><div>&nbsp;&nbsp; Silvio.</div>]]>
   </description>
   <pubDate>Tue, 05 Jul 2011 09:11:22 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2813&amp;PID=11176#11176</guid>
  </item> 
  <item>
   <title>Cache and Related Entity (Lists) : I have a Silverlight application...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2813&amp;PID=11174#11174</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=945" rel="nofollow">mseeli</a><br /><strong>Subject:</strong> 2813<br /><strong>Posted:</strong> 05-Jul-2011 at 2:15am<br /><br /><span ="Apple-style-span">I have a Silverlight application that can be configured with a large number of codes. Because they play such a important role in the application I load all of these codes at the start of the application into the cache so that later on I don't have to query them&nbsp;</span>asynchronously anymore<span ="Apple-style-span">&nbsp;just to use a code.<div><br></div><div>I put all the different code types into one table and use inheritance to have different types of codes.</div><div>So all my codes inherit from CodeEntity and are in the table CodeEntities in the db.</div><div><br></div><div>At the start of the application I get all the entries &nbsp;CodeEntities and make sure that they are all in the cache.</div><div><br></div><div>Some code types are related to each other (1:n relation).</div><div><br></div><div>Now I have noticed that when I navigate within these related codes (i.e. CodeTyp1.CodeTyp2List) DevForce re-queries the database even though all of the codes are already in the cache.&nbsp;</div><div><br></div><div>Is this intended? When I set the default query strategy to CacheOnly I can suppress this behavior but I am hesitant to change the default query strategy all the time because I am not clear on the performance cost of such an action. Also I am afraid, that this could cause problems because of the&nbsp;asynchronous scenario (i.e. switching query strategy in one place while another query is still executing)&nbsp; &nbsp;</div><div><br></div><div>Any ideas how to suppress all those needless db accesses?</div><div><br></div><div>Thank you &nbsp;</div><div>Markus Seeli</div></span>]]>
   </description>
   <pubDate>Tue, 05 Jul 2011 02:15:26 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2813&amp;PID=11174#11174</guid>
  </item> 
 </channel>
</rss>