I read everywhere that Hibernate SessionFactory is expensive-to-create operation. But there is no clarity on what is the expensive part ? Can anyone please explain.
Asked
Active
Viewed 120 times
1 Answers
0
According to this: "The SessionFactory maintains services that Hibernate uses across all Session(s) such as second level caches, connection pools, transaction system integrations, etc."
I guess that creating all this services must be an expensive task.

Kike Lebowski
- 501
- 6
- 6