I have recently had performance problem with Nhibernate generated SQL as described in
Nhibernate generate plain sql query instead of execution statement
I also found a link describing similar experience from the one and only Jeff Atwood at
http://legeronline.blogspot.ca/2009/03/evils-of-slow-paramaterized-query-plans.html
Does anyone know if there is anyway to add an “Optimize Uknown” option to Nhibernate?
ExecuteReader()is called