<?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 : GetEntitiesAsync Hangs</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : GetEntitiesAsync Hangs</description>
  <pubDate>Sat, 11 Apr 2026 10:56:03 -700</pubDate>
  <lastBuildDate>Thu, 02 Apr 2009 19:52:34 -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=1186</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>GetEntitiesAsync Hangs : We haven&amp;#039;t specifically seen...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1186&amp;PID=4251#4251</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 1186<br /><strong>Posted:</strong> 02-Apr-2009 at 7:52pm<br /><br />We haven't specifically seen GetEntitiesAsync hanging, but I can&nbsp;think of a reason why that might&nbsp;occur.&nbsp; The async portion of the call will retrieve the data from the backend, but all post-processing of that data to merge it&nbsp;into the PM cache is done&nbsp;on the main thread (because the PM is not thread safe).&nbsp; <DIV>&nbsp;</DIV><DIV>I don't really know what's causing the slowdown in your particular case, but if the problem seems to be large amounts of data returned then breaking the query up into smaller chunks might work, and you could run each of these async queries in parallel.</DIV><DIV>&nbsp;</DIV><DIV>Other things to look at would be any event handlers on the EntityTable(s) involved and turning those handlers off during the merge; any other handlers for list or property changed events, and turning those off.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 02 Apr 2009 19:52:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1186&amp;PID=4251#4251</guid>
  </item> 
  <item>
   <title>GetEntitiesAsync Hangs : Hi All, Another performance question....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1186&amp;PID=4242#4242</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=441" rel="nofollow">*Calsy</a><br /><strong>Subject:</strong> 1186<br /><strong>Posted:</strong> 01-Apr-2009 at 10:12pm<br /><br />Hi All, Another performance question. We have some large dropdowns in some our forms so I decided that when hte application kicks off we would get the entities required for the dropdown async so that when the form loads it doesnt have to hit the db for the records. Sounds pretty simple. <br><br>The problem is that once the GetEntitiesAsync finishes pulling the data across it seems to hang the UI for a second or two (on the big datasets). Can you please explain why this is or what we can do to get around it.<br><br>Thanks in advance<br>]]>
   </description>
   <pubDate>Wed, 01 Apr 2009 22:12:04 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1186&amp;PID=4242#4242</guid>
  </item> 
 </channel>
</rss>