Ayende @ Rahien

Refunds available at head office

NHibernate.RunFaster() secret toggle

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:

image

And it pretty much does the same thing.

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

Comments

Saman
11/28/2013 10:40 AM by
Saman

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

Thomas Levesque
11/28/2013 01:08 PM by
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?

jia
11/28/2013 01:35 PM by
jia

Documented undocumented features?

Jorge Silva
11/28/2013 03:41 PM by
Jorge Silva

http://docs.jboss.org/hibernate/orm/3.3/reference/en/html/performance.html

Afif
11/28/2013 10:08 PM by
Afif

re: “Secret_incantation” = “chicken/sacrifice”

lol, very funny.

Diego Mijelshon
11/30/2013 03:37 PM by
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.

DG
12/04/2013 12:05 AM by
DG

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

https://www.google.com/search?q=defaultbatchfetch_size

Comments have been closed on this topic.