<?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: Improving Performance via Eager Fetching in Hibernate</title>
	<atom:link href="http://www.basilv.com/psd/blog/2008/improving-performance-via-eager-fetching-in-hibernate/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.basilv.com/psd/blog/2008/improving-performance-via-eager-fetching-in-hibernate</link>
	<description></description>
	<lastBuildDate>Wed, 08 Feb 2012 03:57:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Lucas</title>
		<link>http://www.basilv.com/psd/blog/2008/improving-performance-via-eager-fetching-in-hibernate/comment-page-1#comment-110131</link>
		<dc:creator>Lucas</dc:creator>
		<pubDate>Wed, 21 Jul 2010 14:28:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.basilv.com/psd/blog/2008/improving-performance-via-eager-fetching-in-hibernate#comment-110131</guid>
		<description>Hi, i found this article when searching a way to improve performance in a nullable one-to-one mapping. I understand hibernate needs to query the database to know its nullability, but it does it with subsequent selects. So, if i want to retrieve a list of entities that have 4 one-to-one associations, hibernate triggers 4 selects for each entity retrieved. I tried everything to make hibernate retrieve the associations in a single query (fetch=&#039;join&#039; and outer-join=&#039;true&#039;) but i see no difference. Do you have an idea of how can i avoid the separate selects?
Lucas</description>
		<content:encoded><![CDATA[<p>Hi, i found this article when searching a way to improve performance in a nullable one-to-one mapping. I understand hibernate needs to query the database to know its nullability, but it does it with subsequent selects. So, if i want to retrieve a list of entities that have 4 one-to-one associations, hibernate triggers 4 selects for each entity retrieved. I tried everything to make hibernate retrieve the associations in a single query (fetch=&#8217;join&#8217; and outer-join=&#8217;true&#8217;) but i see no difference. Do you have an idea of how can i avoid the separate selects?<br />
Lucas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.basilv.com/psd/blog/2008/improving-performance-via-eager-fetching-in-hibernate/comment-page-1#comment-109475</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 02 Jul 2010 00:11:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.basilv.com/psd/blog/2008/improving-performance-via-eager-fetching-in-hibernate#comment-109475</guid>
		<description>a better solution is to just write your own SQL, lot simpler and will perform a lot better!</description>
		<content:encoded><![CDATA[<p>a better solution is to just write your own SQL, lot simpler and will perform a lot better!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carles Barrobés</title>
		<link>http://www.basilv.com/psd/blog/2008/improving-performance-via-eager-fetching-in-hibernate/comment-page-1#comment-109399</link>
		<dc:creator>Carles Barrobés</dc:creator>
		<pubDate>Wed, 30 Jun 2010 09:22:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.basilv.com/psd/blog/2008/improving-performance-via-eager-fetching-in-hibernate#comment-109399</guid>
		<description>Very useful article. I had run into the problem of duplicated rows, which also surprised me as default behavior. 

I found that if you want distinct to be applied to a Criteria query, you have to use...

   criteria.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);

...before calling list().</description>
		<content:encoded><![CDATA[<p>Very useful article. I had run into the problem of duplicated rows, which also surprised me as default behavior. </p>
<p>I found that if you want distinct to be applied to a Criteria query, you have to use&#8230;</p>
<p>   criteria.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);</p>
<p>&#8230;before calling list().</p>
]]></content:encoded>
	</item>
</channel>
</rss>

