<?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: Avoiding Caching To Improve Hibernate Performance</title>
	<atom:link href="http://www.basilv.com/psd/blog/2010/avoiding-caching-to-improve-hibernate-performance/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.basilv.com/psd/blog/2010/avoiding-caching-to-improve-hibernate-performance</link>
	<description></description>
	<lastBuildDate>Wed, 16 May 2012 04:03:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: James Cronen</title>
		<link>http://www.basilv.com/psd/blog/2010/avoiding-caching-to-improve-hibernate-performance/comment-page-1#comment-108907</link>
		<dc:creator>James Cronen</dc:creator>
		<pubDate>Mon, 14 Jun 2010 19:14:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.basilv.com/psd/?p=486#comment-108907</guid>
		<description>Great post!  Thank you for this; you&#039;ve gotten me out of a serious performance jam.</description>
		<content:encoded><![CDATA[<p>Great post!  Thank you for this; you&#8217;ve gotten me out of a serious performance jam.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Angel</title>
		<link>http://www.basilv.com/psd/blog/2010/avoiding-caching-to-improve-hibernate-performance/comment-page-1#comment-105113</link>
		<dc:creator>Angel</dc:creator>
		<pubDate>Sun, 07 Mar 2010 09:18:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.basilv.com/psd/?p=486#comment-105113</guid>
		<description>Hi.
I still think that in a batch-like scenario the first level cache is for no use. Anyway you always have the choice of using whatever Hibernate session that is more suitable for your needs, and you can use the normal Hibernate Session for the rest of the application. But I would never use the normal Hibernate session for a batch process like the one you describe, or you will end up having severe performance issues like those you have mentioned in your post. I still think the best solution to that problem is as easy as using the stateless session, with no drawbacks at all.
Cheers.</description>
		<content:encoded><![CDATA[<p>Hi.<br />
I still think that in a batch-like scenario the first level cache is for no use. Anyway you always have the choice of using whatever Hibernate session that is more suitable for your needs, and you can use the normal Hibernate Session for the rest of the application. But I would never use the normal Hibernate session for a batch process like the one you describe, or you will end up having severe performance issues like those you have mentioned in your post. I still think the best solution to that problem is as easy as using the stateless session, with no drawbacks at all.<br />
Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Basil Vandegriend</title>
		<link>http://www.basilv.com/psd/blog/2010/avoiding-caching-to-improve-hibernate-performance/comment-page-1#comment-104992</link>
		<dc:creator>Basil Vandegriend</dc:creator>
		<pubDate>Thu, 04 Mar 2010 05:04:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.basilv.com/psd/?p=486#comment-104992</guid>
		<description>Using stateless Hibernate sessions is an option, but since such sessions have no level one cache at all, you lose out on a lot of Hibernate functionality that I consider essential (see https://www.hibernate.org/hib_docs/v3/api/org/hibernate/StatelessSession.html for details). So I consider stateless sessions to be an option of last resort. You are correct that filling the level one cache with thousands of objects hurting performance is poor usage of Hibernate.</description>
		<content:encoded><![CDATA[<p>Using stateless Hibernate sessions is an option, but since such sessions have no level one cache at all, you lose out on a lot of Hibernate functionality that I consider essential (see <a href="https://www.hibernate.org/hib_docs/v3/api/org/hibernate/StatelessSession.html" rel="nofollow">https://www.hibernate.org/hib_docs/v3/api/org/hibernate/StatelessSession.html</a> for details). So I consider stateless sessions to be an option of last resort. You are correct that filling the level one cache with thousands of objects hurting performance is poor usage of Hibernate.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Angel</title>
		<link>http://www.basilv.com/psd/blog/2010/avoiding-caching-to-improve-hibernate-performance/comment-page-1#comment-104946</link>
		<dc:creator>Angel</dc:creator>
		<pubDate>Wed, 03 Mar 2010 06:06:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.basilv.com/psd/?p=486#comment-104946</guid>
		<description>Correct me if I am wrong, but in the scenario you are mentioning (batch process) you should be using Stateless Hibernate sessions. If not is normal to get those performance figures. So I think in this case is not a problem with the cache but a misuse of Hibernate.</description>
		<content:encoded><![CDATA[<p>Correct me if I am wrong, but in the scenario you are mentioning (batch process) you should be using Stateless Hibernate sessions. If not is normal to get those performance figures. So I think in this case is not a problem with the cache but a misuse of Hibernate.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

