<?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 : Slow Saves</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Slow Saves</description>
  <pubDate>Sat, 11 Apr 2026 14:00:24 -700</pubDate>
  <lastBuildDate>Thu, 24 Sep 2009 08:36:09 -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=1483</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>Slow Saves : There is a wrinkle when pre-generating...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1483&amp;PID=5471#5471</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=308" rel="nofollow">skingaby</a><br /><strong>Subject:</strong> 1483<br /><strong>Posted:</strong> 24-Sep-2009 at 8:36am<br /><br />There is a wrinkle when pre-generating views for Entity Model projects with embedded metadata.  (And it is definitely easier to work with embedded metadata in and Ideablade solution.)  I posted an explanation here: <a href="http://&#111;nemanwenttomow.wordpress.com/2009/09/24/pre-generating-entity-framework-views-with-&#101;mbedded-metadata/" target="_blank">Pre-Generating Entity Framework Views with Embedded Metadata</a>]]>
   </description>
   <pubDate>Thu, 24 Sep 2009 08:36:09 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1483&amp;PID=5471#5471</guid>
  </item> 
  <item>
   <title>Slow Saves : We have long thought that the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1483&amp;PID=5466#5466</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> 1483<br /><strong>Posted:</strong> 23-Sep-2009 at 7:36pm<br /><br />We have long thought that the only performance hit was in the first time the EF metadata was loaded as EF performed view generation.&nbsp; Based on testing today with a customer's database where the hit was 20-30 seconds for both the first query AND the first save, we now think otherwise.&nbsp; <DIV>&nbsp;</DIV><DIV>The workaround is to use pre-generated views, which you can read about here - <a href="http://msdn.microsoft.com/en-us/library/bb896240.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/bb896240.aspx</A>.&nbsp; This is actually pretty easy to set up, and can improve performance dramatically for both the first query and the first save performed.</DIV><DIV>&nbsp;</DIV><DIV>We'll be investigating further why the double hit is occurring and what we can do to mitigate it.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 23 Sep 2009 19:36:11 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1483&amp;PID=5466#5466</guid>
  </item> 
  <item>
   <title>Slow Saves : We are experiencing this exact...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1483&amp;PID=5462#5462</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=300" rel="nofollow">pucsoftware</a><br /><strong>Subject:</strong> 1483<br /><strong>Posted:</strong> 23-Sep-2009 at 12:59pm<br /><br />We are experiencing this exact behavior too. The first save with the entity manager takes 5-10 seconds to complete. To echo mbevins1, why is this still happening after we've retrieved data from the framework? GregD, is there a trick to initializing the EF during application load so that the user can expect the delay as a normal part of application start-up?]]>
   </description>
   <pubDate>Wed, 23 Sep 2009 12:59:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1483&amp;PID=5462#5462</guid>
  </item> 
  <item>
   <title>Slow Saves : This is actually when we save...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1483&amp;PID=5452#5452</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=429" rel="nofollow">mbevins1</a><br /><strong>Subject:</strong> 1483<br /><strong>Posted:</strong> 22-Sep-2009 at 10:10am<br /><br />This is actually when we save too, at the time we are saving we have already hit the framework and have retrieved some data.]]>
   </description>
   <pubDate>Tue, 22 Sep 2009 10:10:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1483&amp;PID=5452#5452</guid>
  </item> 
  <item>
   <title>Slow Saves : It&amp;#039;s not the first time you...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1483&amp;PID=5451#5451</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> 1483<br /><strong>Posted:</strong> 22-Sep-2009 at 10:03am<br /><br />It's not the first time you save: it's the first time you hit the Entity Framework. Could also be a data retrieval.]]>
   </description>
   <pubDate>Tue, 22 Sep 2009 10:03:47 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1483&amp;PID=5451#5451</guid>
  </item> 
  <item>
   <title>Slow Saves : I added it to the app.config file...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1483&amp;PID=5445#5445</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=429" rel="nofollow">mbevins1</a><br /><strong>Subject:</strong> 1483<br /><strong>Posted:</strong> 22-Sep-2009 at 4:16am<br /><br />I added it to the app.config file and we are no longer getting the error.&nbsp; <DIV>&nbsp;</DIV><DIV>So, in addition to the first time devforce starts up and you log in, the very first time you save you will see this delay?&nbsp;The reason this is an issue is due to it takeing&nbsp;over 10 seconds the first time and then everytime after that it is fine.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 22 Sep 2009 04:16:50 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1483&amp;PID=5445#5445</guid>
  </item> 
  <item>
   <title>Slow Saves : In addition to implementing the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1483&amp;PID=5442#5442</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> 1483<br /><strong>Posted:</strong> 21-Sep-2009 at 12:59pm<br /><br />In addition to implementing the interfaces, you must list the assembly where they reside in the list of top-level (not edmKey) probe assemblies in the app.config file.<br><br>Re the performance issues:<br><br>There is a performance hit the first time DevForce engages the Entity Framework; both EF and DevForce need to set up their metadata.&nbsp; There should not be any appreciable performance hit associated with probing for the IEntityServiceSaving and IEntityServiceSaved classes, whether or not they're found. But we'll check into it.<br><br>]]>
   </description>
   <pubDate>Mon, 21 Sep 2009 12:59:41 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1483&amp;PID=5442#5442</guid>
  </item> 
  <item>
   <title>Slow Saves : When ever we save anything, the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1483&amp;PID=5436#5436</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=429" rel="nofollow">mbevins1</a><br /><strong>Subject:</strong> 1483<br /><strong>Posted:</strong> 21-Sep-2009 at 6:48am<br /><br /><P>When ever we save anything, the very first time we call entityManager.SaveChanges, it take a long time. After checking out the log files, I notices these two entries.</P><P>Unable to locate an implementation of: IdeaBlade.EntityModel.Server.IEntityServerSaving<BR>Unable to locate an implementation of: IdeaBlade.EntityModel.Server.IEntityServerSaved</P><P>Could this be why it is taking&nbsp; long time to save?&nbsp; Also, how do you implement these because I added them to my save class and I still received these messages?</P><P>Here is what I added:</P><P>Added IEntityServerSaving, IEntityServerSaved to my Save Class</P><DIV><BR>public class SavingService : EntityBaseService, IEntityServerSaving, IEntityServerSaved</DIV><P>Then added these 2 methods</P><P>public void OnSaving(EntityServerSavingEventArgs e) </P><P>{ </P><P>if (!e.Principal.Identity.IsAuthenticated)</P><P>{</P><P>e.Cancel = true;</P><P>} </P><P>} </P><P>public void OnSaved(EntityServerSavedEventArgs e) </P><DIV>{<BR>}</DIV>]]>
   </description>
   <pubDate>Mon, 21 Sep 2009 06:48:45 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1483&amp;PID=5436#5436</guid>
  </item> 
 </channel>
</rss>