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:
And it pretty much does the same thing.
No, I won’t explain why. Go read the docs.
Comments
Lol, this is probably one of the funniest posts you"ve ever written... :D
What docs?
I agree with Erik. The documentation for NHibernate is abysmal, and anyway it doesn't mention the default_batch_fetch_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?
http://docs.jboss.org/hibernate/orm/3.3/reference/en/html/performance.html
re: “Secret_incantation” = “chicken/sacrifice”
lol, very funny.
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"
https://www.google.com/search?q=defaultbatchfetch_size
Comment preview