﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Ted Jardine commented on NH Prof Alerts: Use statement batching</title><description>How's that for support: while posting a follow-up post you were already posting the answer.
  
  
Much thanks on both items.
</description><link>http://ayende.com/3786/nh-prof-alerts-use-statement-batching#comment14</link><guid>http://ayende.com/3786/nh-prof-alerts-use-statement-batching#comment14</guid><pubDate>Tue, 10 Feb 2009 01:39:59 GMT</pubDate></item><item><title>Ted Jardine commented on NH Prof Alerts: Use statement batching</title><description>It appears that Niraj Bhatt has got batch size working with Oracle (see 
[nirajrules.wordpress.com/.../nhibernate-lessons...](http://nirajrules.wordpress.com/2009/01/27/nhibernate-lessons-learned/)) so I'll find out from him what, if anything, he had misconfigured initially. Will then post according in NH Prof Google group.
</description><link>http://ayende.com/3786/nh-prof-alerts-use-statement-batching#comment13</link><guid>http://ayende.com/3786/nh-prof-alerts-use-statement-batching#comment13</guid><pubDate>Tue, 10 Feb 2009 01:38:34 GMT</pubDate></item><item><title>Ayende Rahien commented on NH Prof Alerts: Use statement batching</title><description>Ted,
  
1/ the problem is with the way oracle's batches work. It wouldn't be reported as a batch in the profiler.
  
2/ I'll add one
</description><link>http://ayende.com/3786/nh-prof-alerts-use-statement-batching#comment12</link><guid>http://ayende.com/3786/nh-prof-alerts-use-statement-batching#comment12</guid><pubDate>Tue, 10 Feb 2009 01:25:16 GMT</pubDate></item><item><title>Ted Jardine commented on NH Prof Alerts: Use statement batching</title><description>First of all, within 10 minutes of profiling an app with NH Prof, I was able to discover an N + 1 select that none of my tests covered and in so doing uncovered a small typo that hadn't been caught at compile time or in any tests. Thank you for a great app!
  
  
1. I too am having difficulty getting the adonet.batch_size to work with Oracle. And yes, I'm using Oracle's driver (11g (11.1.0.6.20) with a 10g database).
  
2. I would love a keyboard shortcut to OPTIONS -&gt; Clear
  
  
I realize that support questions should likely go to the Google group, so will post there.
</description><link>http://ayende.com/3786/nh-prof-alerts-use-statement-batching#comment11</link><guid>http://ayende.com/3786/nh-prof-alerts-use-statement-batching#comment11</guid><pubDate>Tue, 10 Feb 2009 01:10:31 GMT</pubDate></item><item><title>Ayende Rahien commented on NH Prof Alerts: Use statement batching</title><description>I can confirm that batching works on Oracle.
  
Note that this is only using's Oracle's driver, not the system.data.oracle driver.
</description><link>http://ayende.com/3786/nh-prof-alerts-use-statement-batching#comment10</link><guid>http://ayende.com/3786/nh-prof-alerts-use-statement-batching#comment10</guid><pubDate>Thu, 15 Jan 2009 10:13:07 GMT</pubDate></item><item><title>Niraj Bhatt commented on NH Prof Alerts: Use statement batching</title><description>Oops!!! I had missed inverse="true". Ayende this could be a good thing to be detected by Profiler. Also can you please confirm that statment batching works with Oracle? I am looking at a single call to DB with multiple queries which does Insert, delete, update. Somehow I am not able to achieve it.
</description><link>http://ayende.com/3786/nh-prof-alerts-use-statement-batching#comment9</link><guid>http://ayende.com/3786/nh-prof-alerts-use-statement-batching#comment9</guid><pubDate>Thu, 15 Jan 2009 05:49:31 GMT</pubDate></item><item><title>Niraj Bhatt commented on NH Prof Alerts: Use statement batching</title><description>Sorry for the typo. I meant 
  
  
"when i try to insert a graph with one to many relationship, updates are followed by inserts. "
</description><link>http://ayende.com/3786/nh-prof-alerts-use-statement-batching#comment8</link><guid>http://ayende.com/3786/nh-prof-alerts-use-statement-batching#comment8</guid><pubDate>Tue, 13 Jan 2009 11:33:28 GMT</pubDate></item><item><title>Niraj Bhatt commented on NH Prof Alerts: Use statement batching</title><description>It's not working with Oracle. I am using 10G &amp; in the config file I have adonet.batch_size property to 16. I also tried setting batch-size at the class level but in vain. It still shows me all inserts seperate. One more aspect which confused me is when i try to insert a graph with one to many relationship, inserts are followed by updates.
</description><link>http://ayende.com/3786/nh-prof-alerts-use-statement-batching#comment7</link><guid>http://ayende.com/3786/nh-prof-alerts-use-statement-batching#comment7</guid><pubDate>Tue, 13 Jan 2009 11:30:09 GMT</pubDate></item><item><title>Roger commented on NH Prof Alerts: Use statement batching</title><description>I haven't really used nhib + ado.net batching in real apps due to the mismatch between this and versioning/opt locking (which I normally use for every aggregate).
  
Are you aware of any good work around for this?
</description><link>http://ayende.com/3786/nh-prof-alerts-use-statement-batching#comment6</link><guid>http://ayende.com/3786/nh-prof-alerts-use-statement-batching#comment6</guid><pubDate>Fri, 02 Jan 2009 00:25:39 GMT</pubDate></item><item><title>Ayende Rahien commented on NH Prof Alerts: Use statement batching</title><description>Thomas, 
  
You are correct, and I'll change the name of this alert.
  
Thanks for noticing this.
</description><link>http://ayende.com/3786/nh-prof-alerts-use-statement-batching#comment5</link><guid>http://ayende.com/3786/nh-prof-alerts-use-statement-batching#comment5</guid><pubDate>Wed, 31 Dec 2008 14:52:14 GMT</pubDate></item><item><title>Thomas Krause commented on NH Prof Alerts: Use statement batching</title><description>This is a nice feature, but I would reconsider the name of this warning. If I remember correctly your other alerts state the problem in the name ("Too many database calls per session"), but this time you named the alert after the proposed solution ("Use statement batching"). This is bad in my eyes for a number of reasons:
  
- It is inconsistent with the other warnings
  
- A large number of writes may indicate a more fundamental problem, like deleting all child items in a collection and recreating them each time you add one item.
  
- There are other solutions to reduce the number of writes to the database other than batching. For example for large bulk imports, you may want to use other options like SqlBulkCopy.
  
  
Just my 2cts...
</description><link>http://ayende.com/3786/nh-prof-alerts-use-statement-batching#comment4</link><guid>http://ayende.com/3786/nh-prof-alerts-use-statement-batching#comment4</guid><pubDate>Wed, 31 Dec 2008 14:02:13 GMT</pubDate></item><item><title>ZeusTheTrueGod commented on NH Prof Alerts: Use statement batching</title><description>Ayende, Happy New Year!
  
I read your blog every day, and at least 30% of your posts are usefull for me, please write more and better next year
  
Is there any chance to see a demo (5-10 minutes) of using NH Prof in sample hibernate application and removing select N+1 and other performance issues? If NHProf can find at least half issues - it is already usefull tool and comunity should have it in NHibernate package
  
</description><link>http://ayende.com/3786/nh-prof-alerts-use-statement-batching#comment3</link><guid>http://ayende.com/3786/nh-prof-alerts-use-statement-batching#comment3</guid><pubDate>Wed, 31 Dec 2008 11:34:06 GMT</pubDate></item><item><title>Ayende Rahien commented on NH Prof Alerts: Use statement batching</title><description>It works in Sql Server 2000 + and in Oracle.
</description><link>http://ayende.com/3786/nh-prof-alerts-use-statement-batching#comment2</link><guid>http://ayende.com/3786/nh-prof-alerts-use-statement-batching#comment2</guid><pubDate>Wed, 31 Dec 2008 10:47:49 GMT</pubDate></item><item><title>Krzysztof Kozmic commented on NH Prof Alerts: Use statement batching</title><description>isn't it something that works only with MS SQL Server 2005+ ?
</description><link>http://ayende.com/3786/nh-prof-alerts-use-statement-batching#comment1</link><guid>http://ayende.com/3786/nh-prof-alerts-use-statement-batching#comment1</guid><pubDate>Wed, 31 Dec 2008 07:31:57 GMT</pubDate></item></channel></rss>