Chen Kinnrot
Chen Kinnrot

Reputation: 21015

nhibernate session starts

When I just Create the Factory, It seems to do a lot of work (in the log4net console) when it start without me asking him to do anything. could it be that those are just tests he does for himself?

Upvotes: 0

Views: 100

Answers (1)

Aaron Fischer
Aaron Fischer

Reputation: 21211

Creating a sessionFactory is an expensive operation. Typically you only create one sessionFactory at the start of your application and store a cached version for creating your sessions.

Upvotes: 1

Related Questions