Have you tried profiling it, using other than NHProf, e.g. dotTrace Performance, to find where that 4-5 sec actually happened? I haven't played with web apps anymore in these days, but on a desktop app (WPF) with around 10-20 entities, it would take around 1-2 sec to initialize session factory until it's ready to be used.
HTH, JH On Saturday, May 26, 2012 8:04:51 AM UTC-6, BobRock wrote: > > I have post question on > http://stackoverflow.com/questions/10766662/optimizing-nhibernate-session-factory-startup-time-of-webapp-really-slow > but still have no answer. > > Basically one lightwave entity is used in fluent conf. mapping inside > session factory. That session factory have initial time of 4-5 sec on that > one entity. Adding more entities to session factory, to be precise 6 of > them are increase initial time to 10+sec. > > What can be a problem. Please use posted link above for details. > > Regards > > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To view this discussion on the web visit https://groups.google.com/d/msg/nhusers/-/F6HyS2KktvAJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
