Ayende @ Rahien

My name is Oren Eini
Founder of Hibernating Rhinos LTD and RavenDB.
You can reach me by phone or email:


+972 52-548-6969

, @ Q c

Posts: 18 | Comments: 81

filter by tags archive

NHibernate.RunFaster() secret toggle

time to read 1 min | 93 words

I keep getting asked by people: “What is the configuration option to make NHibernate run faster?”

People sort of assume that NHibernate is configured to be slow by default because it amuses someone.

Well, while there isn’t a “Secret_incantation” = “chicken/sacrifice” option in NHibernate, there is this one:


And it pretty much does the same thing.

No, I won’t explain why. Go read the docs.



Lol, this is probably one of the funniest posts you"ve ever written... :D

Thomas Levesque

I agree with Erik. The documentation for NHibernate is abysmal, and anyway it doesn't mention the defaultbatchfetch_size. Sure, the meaning is pretty obvious from the name, but I still think it deserves an explanation. Why does it make it faster?


Documented undocumented features?

Jorge Silva



re: “Secret_incantation” = “chicken/sacrifice”

lol, very funny.

Diego Mijelshon

Well, this is pretty much what I've been advocating for years when someone makes a perf question in stackoverflow. I wonder if some value >1 shouldn't be the default. Not sure if 15, but definitely something between 10 and 50.


I get it, the joke is in "Go read the docs"


Comment preview

Comments have been closed on this topic.


  1. The insidious cost of allocations - 18 hours from now
  2. Buffer allocation strategies: A possible solution - 4 days from now
  3. Buffer allocation strategies: Explaining the solution - 5 days from now
  4. Buffer allocation strategies: Bad usage patterns - 6 days from now
  5. The useless text book algorithms - 7 days from now

And 1 more posts are pending...

There are posts all the way to Sep 11, 2015


  1. Find the bug (5):
    20 Apr 2011 - Why do I get a Null Reference Exception?
  2. Production postmortem (10):
    03 Sep 2015 - The industry at large
  3. What is new in RavenDB 3.5 (7):
    12 Aug 2015 - Monitoring support
  4. Career planning (6):
    24 Jul 2015 - The immortal choices aren't
View all series


Main feed Feed Stats
Comments feed   Comments Feed Stats