<?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: Bulk Data Operations With NHibernate&#8217;s Stateless Sessions</title> <atom:link href="http://davybrion.com/blog/2008/10/bulk-data-operations-with-nhibernates-stateless-sessions/feed/" rel="self" type="application/rss+xml" /><link>http://davybrion.com/blog/2008/10/bulk-data-operations-with-nhibernates-stateless-sessions/</link> <description>inquisitive: adjective. given to inquiry, research, or asking questions; eager for knowledge; intellectually curious</description> <lastBuildDate>Wed, 08 Feb 2012 11:42:42 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Pijush dutta</title><link>http://davybrion.com/blog/2008/10/bulk-data-operations-with-nhibernates-stateless-sessions/comment-page-1/#comment-99389</link> <dc:creator>Pijush dutta</dc:creator> <pubDate>Wed, 25 May 2011 07:31:00 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=543#comment-99389</guid> <description>Hi, when i am using the same code for bulk insert it gives me this exception from second record &quot;NHibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session&quot;. Note i have a composite key in my nhibernate mapping. It works fine if i close the session after each transaction. but then it is not bulk update i think. Please suggest a way out.</description> <content:encoded><![CDATA[<p>Hi,</p><p> when i am using the same code for bulk insert it gives me this exception from second record &#8220;NHibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session&#8221;. Note i have a composite key in my nhibernate mapping. It works fine if i close the session after each transaction. but then it is not bulk update i think. Please suggest a way out.</p> ]]></content:encoded> </item> <item><title>By: Robert</title><link>http://davybrion.com/blog/2008/10/bulk-data-operations-with-nhibernates-stateless-sessions/comment-page-1/#comment-32310</link> <dc:creator>Robert</dc:creator> <pubDate>Tue, 16 Mar 2010 14:04:02 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=543#comment-32310</guid> <description>Something I noticed when using the stateless session is that dependent objects get not cascade as they do using the &quot;normal&quot; session even though cascade=&quot;all&quot; is set. To overcome this problem you need to loop through the dependent objects yourself, which is not a biggy. Just add the additional loops to your repository.This is from the documentation:
&quot;A stateless session does not implement a first-level cache nor interact with any second-level cache, nor does it implement transactional write-behind or automatic dirty checking, nor do operations cascade to associated instances. Collections are ignored by a stateless session. Operations performed via a stateless session bypass Hibernate&#039;s event model and interceptors. Stateless sessions are vulnerable to data aliasing effects, due to the lack of a first-level cache.&quot;</description> <content:encoded><![CDATA[<p>Something I noticed when using the stateless session is that dependent objects get not cascade as they do using the &#8220;normal&#8221; session even though cascade=&#8221;all&#8221; is set. To overcome this problem you need to loop through the dependent objects yourself, which is not a biggy. Just add the additional loops to your repository.</p><p>This is from the documentation:<br
/> &#8220;A stateless session does not implement a first-level cache nor interact with any second-level cache, nor does it implement transactional write-behind or automatic dirty checking, nor do operations cascade to associated instances. Collections are ignored by a stateless session. Operations performed via a stateless session bypass Hibernate&#8217;s event model and interceptors. Stateless sessions are vulnerable to data aliasing effects, due to the lack of a first-level cache.&#8221;</p> ]]></content:encoded> </item> <item><title>By: Davy Brion</title><link>http://davybrion.com/blog/2008/10/bulk-data-operations-with-nhibernates-stateless-sessions/comment-page-1/#comment-4976</link> <dc:creator>Davy Brion</dc:creator> <pubDate>Sat, 15 Nov 2008 12:19:13 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=543#comment-4976</guid> <description>@AndrzejI use NHibernate 2.0.x but i do use it on SQL Server... The last time i used it on Oracle was about a year ago, with NHibernate 1.2. But i actually think most of the batching functionality of NHibernate simply doesn&#039;t work with Oracle, not sure though...</description> <content:encoded><![CDATA[<p>@Andrzej</p><p>I use NHibernate 2.0.x but i do use it on SQL Server&#8230; The last time i used it on Oracle was about a year ago, with NHibernate 1.2. But i actually think most of the batching functionality of NHibernate simply doesn&#8217;t work with Oracle, not sure though&#8230;</p> ]]></content:encoded> </item> <item><title>By: Andrzej</title><link>http://davybrion.com/blog/2008/10/bulk-data-operations-with-nhibernates-stateless-sessions/comment-page-1/#comment-4954</link> <dc:creator>Andrzej</dc:creator> <pubDate>Fri, 14 Nov 2008 16:59:54 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=543#comment-4954</guid> <description>Hi Davy,
I am investigating NH batch operations on Oracle and would like to speed it up compared to ODP.NET, but when I looked at NH 2.0 sources I seems like when stateless session is used, batching has no effect, inserts are still done one by one and in my case it performs just like normal session with no batching.
Which NHibernate version did you use and which database you were working on?
Regards,
Andrzej</description> <content:encoded><![CDATA[<p>Hi Davy,<br
/> I am investigating NH batch operations on Oracle and would like to speed it up compared to ODP.NET, but when I looked at NH 2.0 sources I seems like when stateless session is used, batching has no effect, inserts are still done one by one and in my case it performs just like normal session with no batching.<br
/> Which NHibernate version did you use and which database you were working on?<br
/> Regards,<br
/> Andrzej</p> ]]></content:encoded> </item> <item><title>By: Reflective Perspective - Chris Alcock &#187; The Morning Brew #213</title><link>http://davybrion.com/blog/2008/10/bulk-data-operations-with-nhibernates-stateless-sessions/comment-page-1/#comment-4453</link> <dc:creator>Reflective Perspective - Chris Alcock &#187; The Morning Brew #213</dc:creator> <pubDate>Fri, 31 Oct 2008 08:32:57 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=543#comment-4453</guid> <description>[...] Bulk Data Operations With NHibernate’s Stateless Sessions - Davy Brion looks at how Stateless Sessions in NHibernate afford memory use benefits when performing bulk data operations. [...]</description> <content:encoded><![CDATA[<p>[...] Bulk Data Operations With NHibernate’s Stateless Sessions &#8211; Davy Brion looks at how Stateless Sessions in NHibernate afford memory use benefits when performing bulk data operations. [...]</p> ]]></content:encoded> </item> <item><title>By: Bulk Data Operations With NHibernate's Stateless Sessions - NHibernate blog - NHibernate Forge</title><link>http://davybrion.com/blog/2008/10/bulk-data-operations-with-nhibernates-stateless-sessions/comment-page-1/#comment-4439</link> <dc:creator>Bulk Data Operations With NHibernate's Stateless Sessions - NHibernate blog - NHibernate Forge</dc:creator> <pubDate>Thu, 30 Oct 2008 19:32:21 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=543#comment-4439</guid> <description>[...] Note: this was originally posted on my own blog [...]</description> <content:encoded><![CDATA[<p>[...] Note: this was originally posted on my own blog [...]</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 2/10 queries in 0.005 seconds using disk: basic
Object Caching 399/400 objects using disk: basic
Content Delivery Network via Amazon Web Services: CloudFront: d18sni7re4ly7f.cloudfront.net

Served from: davybrion.com @ 2012-02-09 03:39:27 -->
