Ayende @ Rahien

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

ayende@ayende.com

+972 52-548-6969

, @ Q c

Posts: 5,953 | Comments: 44,409

filter by tags archive

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

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?

jia
jia

Documented undocumented features?

Jorge Silva

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

Afif

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.

DG
DG

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

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

Comment preview

Comments have been closed on this topic.

FUTURE POSTS

No future posts left, oh my!

RECENT SERIES

  1. The RavenDB Comic Strip (3):
    28 May 2015 - Part III – High availability & sleeping soundly
  2. Special Offer (2):
    27 May 2015 - 29% discount for all our products
  3. RavenDB Sharding (3):
    22 May 2015 - Adding a new shard to an existing cluster, splitting the shard
  4. Challenge (45):
    28 Apr 2015 - What is the meaning of this change?
  5. Interview question (2):
    30 Mar 2015 - fix the index
View all series

Syndication

Main feed Feed Stats
Comments feed   Comments Feed Stats