<?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 : Caching of entities to be saved</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Caching of entities to be saved</description>
  <pubDate>Wed, 13 May 2026 11:56:18 -700</pubDate>
  <lastBuildDate>Thu, 02 Feb 2012 13:19:36 -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=3249</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>Caching of entities to be saved : Hi cocog,The order in which asynchronous...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3249&amp;PID=12609#12609</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 3249<br /><strong>Posted:</strong> 02-Feb-2012 at 1:19pm<br /><br />Hi cocog,<div><br></div><div>The order in which asynchronous operations execute and complete is non-deterministic. If you want to control the save order in SL, you can:</div><div><br></div><div>1. Do Option 2 as suggested here.&nbsp;<a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/save-order" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/save-order</a></div><div><br></div><div>2. Or use Serial Coroutine to suspend the second SaveChangesAsync call until the first one completes. See&nbsp;<a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/coroutines" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/coroutines</a></div><div><br></div><div>Hope this answers your questions.</div>]]>
   </description>
   <pubDate>Thu, 02 Feb 2012 13:19:36 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3249&amp;PID=12609#12609</guid>
  </item> 
  <item>
   <title>Caching of entities to be saved : Our SL screen will allow the user...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3249&amp;PID=12608#12608</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1383" rel="nofollow">cocog</a><br /><strong>Subject:</strong> 3249<br /><strong>Posted:</strong> 02-Feb-2012 at 8:26am<br /><br />Our SL screen will allow the user to create new Owner entities. &nbsp;The owner entity has an identity column for it's primary key in the database. &nbsp;We also capture the time the entity was&nbsp;instantiated&nbsp;by the entity manager (e.g. when the class was created, not saved to the db). &nbsp;We save all additions/modification using "SaveChangesAsync." &nbsp;<div><br></div><div>Occasionally, we will get records in the database that show the records are not saved in the order they were created. &nbsp;For example:</div><div><br></div><div>Owner 1 (created first):</div><div>ID: 1001</div><div>Instantiated: 10:02 AM</div><div><br></div><div>Owner 2 (created second):</div><div>ID: 1000</div><div>Instantiated: 10:05 AM</div><div><br></div><div>SaveChangesAsync was called after each owner was created.&nbsp;</div><div><br></div><div>Why would Owner 1 not be saved to the db until after Owner 2, 3 minutes later?</div><div><br></div>]]>
   </description>
   <pubDate>Thu, 02 Feb 2012 08:26:00 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3249&amp;PID=12608#12608</guid>
  </item> 
 </channel>
</rss>