<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>To Lazy Load or not to Lazy load?</title><link>http://blogs.msdn.com/b/timmall/archive/2008/06/24/to-lazy-load-or-not-to-lazy-load.aspx</link><description>I just exchanged email with Martin Fowler about the term Lazy load. The interpretation that we on the Entity Framework team had about Lazy Loading was that on a given query we would not &amp;quot;eagerly&amp;quot; load an entire graph (i.e. load a customer, their</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: To Lazy Load or not to Lazy load?</title><link>http://blogs.msdn.com/b/timmall/archive/2008/06/24/to-lazy-load-or-not-to-lazy-load.aspx#8708517</link><pubDate>Tue, 08 Jul 2008 17:55:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8708517</guid><dc:creator>Chad Myers</dc:creator><description>&lt;p&gt;How about 'Explicit Delayed Loading' or 'Explicit just-in-time Loading' or something like that?&lt;/p&gt;
&lt;p&gt;Perhaps we should change 'lazy loading' to be 'transparent just-in-time loading' or 'transparent lazy loading' to be more precise?&lt;/p&gt;
&lt;p&gt;In my experience, Lazy Loading was scary at first, but once you got used to it and where it's appropriate to turn it on and there's it's appropriate to turn it off (i.e. NHib will load that part of the graph every time), it really is a huge boon to productivity. &amp;nbsp;In my experience, the DB is actually pretty good at handling a lot of little requests like that, it's the big ones you have to look out for.&lt;/p&gt;
&lt;p&gt;Lazy loading requires some thought/planning on the mapping side and some analysis during testing to make sure it's optimized, but overall I think it's a big plus and definitely worth getting used to.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8708517" width="1" height="1"&gt;</description></item><item><title>re: To Lazy Load or not to Lazy load?</title><link>http://blogs.msdn.com/b/timmall/archive/2008/06/24/to-lazy-load-or-not-to-lazy-load.aspx#8663132</link><pubDate>Sat, 28 Jun 2008 04:08:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8663132</guid><dc:creator>Tim Lee</dc:creator><description>&lt;p&gt;[quote]&lt;/p&gt;
&lt;p&gt;Well to play devil's advocate...&lt;/p&gt;
&lt;p&gt;What do you call .Include(&amp;quot;Customer&amp;quot;)&lt;/p&gt;
&lt;p&gt;[/quote]&lt;/p&gt;
&lt;p&gt;I would call that &amp;quot;eager loading&amp;quot; since it's occurring at the same time the parent is fetched. (&amp;quot;explicit eager loading&amp;quot; maybe, since a single, specific property is requested?)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8663132" width="1" height="1"&gt;</description></item><item><title>re: To Lazy Load or not to Lazy load?</title><link>http://blogs.msdn.com/b/timmall/archive/2008/06/24/to-lazy-load-or-not-to-lazy-load.aspx#8663129</link><pubDate>Sat, 28 Jun 2008 04:05:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8663129</guid><dc:creator>Tim Lee</dc:creator><description>&lt;p&gt;[quote]&lt;/p&gt;
&lt;p&gt;Well to play devil's advocate...&lt;/p&gt;
&lt;p&gt;What do you call .Include(&amp;quot;Customer&amp;quot;)&lt;/p&gt;
&lt;p&gt;[/quote]&lt;/p&gt;
&lt;p&gt;I would call that eager loading. (&amp;quot;explicit eager loading&amp;quot; maybe, since a single, specific property is requested?)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8663129" width="1" height="1"&gt;</description></item><item><title>re: To Lazy Load or not to Lazy load?</title><link>http://blogs.msdn.com/b/timmall/archive/2008/06/24/to-lazy-load-or-not-to-lazy-load.aspx#8656567</link><pubDate>Thu, 26 Jun 2008 15:47:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8656567</guid><dc:creator>Justin DeCourcy</dc:creator><description>&lt;p&gt;As someone who favored the explicit over &amp;quot;magic&amp;quot; for many years I understand your concerns. &amp;nbsp;In recent years I've adopted many &amp;quot;ALT.NET&amp;quot; technologies including NHibernate. &amp;nbsp;Let me say that once you put your faith in the underlying framework to do the magic there's no going back. &amp;nbsp;Sure, there's a call to the backing store that you aren't in control of, but that's the point to some extent. &amp;nbsp;When that call is made is decided by whomever designed the entities and their mappings. &amp;nbsp;More than likely that person is someone who understands the ramifications of lazy vs. eager loads in different scenarios. &amp;nbsp;I'd rather let the framework do my dirty work these days and concentrate on what actually earns measurable returns.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8656567" width="1" height="1"&gt;</description></item><item><title>re: To Lazy Load or not to Lazy load?</title><link>http://blogs.msdn.com/b/timmall/archive/2008/06/24/to-lazy-load-or-not-to-lazy-load.aspx#8654459</link><pubDate>Thu, 26 Jun 2008 06:01:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8654459</guid><dc:creator>Shawn</dc:creator><description>&lt;p&gt;Well to play devil's advocate...&lt;/p&gt;
&lt;p&gt;What do you call .Include(&amp;quot;Customer&amp;quot;)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8654459" width="1" height="1"&gt;</description></item><item><title>re: To Lazy Load or not to Lazy load?</title><link>http://blogs.msdn.com/b/timmall/archive/2008/06/24/to-lazy-load-or-not-to-lazy-load.aspx#8653401</link><pubDate>Thu, 26 Jun 2008 00:23:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8653401</guid><dc:creator>David Yack</dc:creator><description>&lt;p&gt;Explicit is more clear given how it is working &amp;nbsp;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8653401" width="1" height="1"&gt;</description></item><item><title>re: To Lazy Load or not to Lazy load?</title><link>http://blogs.msdn.com/b/timmall/archive/2008/06/24/to-lazy-load-or-not-to-lazy-load.aspx#8652196</link><pubDate>Wed, 25 Jun 2008 17:01:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8652196</guid><dc:creator>colinjack</dc:creator><description>&lt;p&gt;Lazy Loading has been discussed at length, its in books, its discussed in blogs, its been implemented many times including by ORMs...I'm thus slightly confused as to how this misunderstanding could have happened.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8652196" width="1" height="1"&gt;</description></item><item><title>Trading Strategy &amp;raquo; To Lazy Load or not to Lazy load?</title><link>http://blogs.msdn.com/b/timmall/archive/2008/06/24/to-lazy-load-or-not-to-lazy-load.aspx#8650783</link><pubDate>Wed, 25 Jun 2008 07:36:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8650783</guid><dc:creator>Trading Strategy &amp;raquo; To Lazy Load or not to Lazy load?</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://stocks-options-trading.info/trading-strategy/?p=1092"&gt;http://stocks-options-trading.info/trading-strategy/?p=1092&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8650783" width="1" height="1"&gt;</description></item></channel></rss>