<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: ColdFusion ORM : What is &#8220;N+1 Select problem&#8221;</title>
	<atom:link href="http://www.rupeshk.org/blog/index.php/2009/09/coldfusion-orm-what-is-n1-select-problem/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rupeshk.org/blog/index.php/2009/09/coldfusion-orm-what-is-n1-select-problem/</link>
	<description>My Views on ColdFusion, Java and related technologies</description>
	<lastBuildDate>Mon, 26 Jul 2010 14:26:19 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Rupesh Kumar</title>
		<link>http://www.rupeshk.org/blog/index.php/2009/09/coldfusion-orm-what-is-n1-select-problem/comment-page-1/#comment-837</link>
		<dc:creator>Rupesh Kumar</dc:creator>
		<pubDate>Fri, 26 Mar 2010 11:42:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.rupeshk.org/blog/index.php/2009/09/coldfusion-orm-what-is-n1-select-problem/#comment-837</guid>
		<description>That will be loading the employee object only. So N+1 select problem will not come into play.
It comes into play only if you are loading an object which has *-many relation and the relation has fetch=&quot;select&quot; or it is lazy as I explained above.</description>
		<content:encoded><![CDATA[<p>That will be loading the employee object only. So N+1 select problem will not come into play.<br />
It comes into play only if you are loading an object which has *-many relation and the relation has fetch=&#8221;select&#8221; or it is lazy as I explained above.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry Ho</title>
		<link>http://www.rupeshk.org/blog/index.php/2009/09/coldfusion-orm-what-is-n1-select-problem/comment-page-1/#comment-832</link>
		<dc:creator>Henry Ho</dc:creator>
		<pubDate>Thu, 25 Mar 2010 09:51:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.rupeshk.org/blog/index.php/2009/09/coldfusion-orm-what-is-n1-select-problem/#comment-832</guid>
		<description>Oops, it should be [department] as the 2nd argument in the code above.</description>
		<content:encoded><![CDATA[<p>Oops, it should be [department] as the 2nd argument in the code above.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry Ho</title>
		<link>http://www.rupeshk.org/blog/index.php/2009/09/coldfusion-orm-what-is-n1-select-problem/comment-page-1/#comment-831</link>
		<dc:creator>Henry Ho</dc:creator>
		<pubDate>Thu, 25 Mar 2010 09:50:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.rupeshk.org/blog/index.php/2009/09/coldfusion-orm-what-is-n1-select-problem/#comment-831</guid>
		<description>What if I use HQL: 

ormExecuteQuery(&quot;from Employee e where e.department = ?&quot;, [employee])

Is this a N+1 select problem?</description>
		<content:encoded><![CDATA[<p>What if I use HQL: </p>
<p>ormExecuteQuery(&#8221;from Employee e where e.department = ?&#8221;, [employee])</p>
<p>Is this a N+1 select problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rupesh Kumar</title>
		<link>http://www.rupeshk.org/blog/index.php/2009/09/coldfusion-orm-what-is-n1-select-problem/comment-page-1/#comment-550</link>
		<dc:creator>Rupesh Kumar</dc:creator>
		<pubDate>Wed, 16 Sep 2009 13:37:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.rupeshk.org/blog/index.php/2009/09/coldfusion-orm-what-is-n1-select-problem/#comment-550</guid>
		<description>Absolutely !</description>
		<content:encoded><![CDATA[<p>Absolutely !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Nadel</title>
		<link>http://www.rupeshk.org/blog/index.php/2009/09/coldfusion-orm-what-is-n1-select-problem/comment-page-1/#comment-548</link>
		<dc:creator>Ben Nadel</dc:creator>
		<pubDate>Wed, 16 Sep 2009 13:22:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.rupeshk.org/blog/index.php/2009/09/coldfusion-orm-what-is-n1-select-problem/#comment-548</guid>
		<description>Rupesh, good explanation. It looks like we are really going to have to know a bit about how Hibernate works to really leverage this integration efficiently. - we can&#039;t just start using it blindly.</description>
		<content:encoded><![CDATA[<p>Rupesh, good explanation. It looks like we are really going to have to know a bit about how Hibernate works to really leverage this integration efficiently. &#8211; we can&#8217;t just start using it blindly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rupesh Kumar</title>
		<link>http://www.rupeshk.org/blog/index.php/2009/09/coldfusion-orm-what-is-n1-select-problem/comment-page-1/#comment-537</link>
		<dc:creator>Rupesh Kumar</dc:creator>
		<pubDate>Tue, 15 Sep 2009 07:53:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.rupeshk.org/blog/index.php/2009/09/coldfusion-orm-what-is-n1-select-problem/#comment-537</guid>
		<description>Thanks Hemant for making it more clear :-)</description>
		<content:encoded><![CDATA[<p>Thanks Hemant for making it more clear <img src='http://www.rupeshk.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hemant Khandelwal</title>
		<link>http://www.rupeshk.org/blog/index.php/2009/09/coldfusion-orm-what-is-n1-select-problem/comment-page-1/#comment-536</link>
		<dc:creator>Hemant Khandelwal</dc:creator>
		<pubDate>Tue, 15 Sep 2009 04:10:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.rupeshk.org/blog/index.php/2009/09/coldfusion-orm-what-is-n1-select-problem/#comment-536</guid>
		<description>Great posting (again) Rupesh!

The classic N+1 problem in encountered in a simple lazy load scenario in any general application.

1query to get all department objects with PK

SELECT deptID FROM department;

And then query to get all other details of a particular dept

SELECT * FROM department where deptID=?;

The second query is executed as many times (N) as the number of full records you want to fetch. Its when N is high, eager can be a good strategy.</description>
		<content:encoded><![CDATA[<p>Great posting (again) Rupesh!</p>
<p>The classic N+1 problem in encountered in a simple lazy load scenario in any general application.</p>
<p>1query to get all department objects with PK</p>
<p>SELECT deptID FROM department;</p>
<p>And then query to get all other details of a particular dept</p>
<p>SELECT * FROM department where deptID=?;</p>
<p>The second query is executed as many times (N) as the number of full records you want to fetch. Its when N is high, eager can be a good strategy.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
