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,970 | Comments: 44,505

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. Production postmortem (5):
    29 Jul 2015 - The evil licensing code
  2. Career planning (6):
    24 Jul 2015 - The immortal choices aren't
  3. API Design (7):
    20 Jul 2015 - We’ll let the users sort it out
  4. What is new in RavenDB 3.5 (3):
    15 Jul 2015 - Exploring data in the dark
  5. The RavenDB Comic Strip (3):
    28 May 2015 - Part III – High availability & sleeping soundly
View all series

Syndication

Main feed Feed Stats
Comments feed   Comments Feed Stats