how to increase mvc3 nhibernate startup time

70 views
Skip to first unread message

BobRock

unread,
May 26, 2012, 10:04:51 AM5/26/12
to nhu...@googlegroups.com
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

Maximilian Raditya

unread,
May 27, 2012, 10:12:00 AM5/27/12
to nhu...@googlegroups.com
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.
 
 

 


--
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/-/bnrCnzd3n1UJ.
To post to this group, send email to nhu...@googlegroups.com.
To unsubscribe from this group, send email to nhusers+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.



--
Regards,

Maximilian Haru Raditya

JH

unread,
May 29, 2012, 9:03:00 AM5/29/12
to nhu...@googlegroups.com
Have you taken a look at this article? http://msdn.microsoft.com/en-us/magazine/ee819139.aspx
You may, or may not, be using a desktop application, but the section under the header "Addressing Performance" should be applicable in either scenario.

HTH,
JH

JH

unread,
May 29, 2012, 9:04:24 AM5/29/12
to nhu...@googlegroups.com
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:
Reply all
Reply to author
Forward
0 new messages