That's the idea. The alternative is to create multiple SessionFactory instances, one per-tenant. So in theory the heap should be reduced.
On Sun, Sep 27, 2015 at 12:30 AM amit shah <amits...@gmail.com> wrote: > Including the dev mailing group to get a few suggestions on my question. > > Thanks! > > On Wed, Sep 23, 2015 at 4:54 PM, amit shah <amits...@gmail.com> wrote: > > > We are planning to integrate hibernate 4 multi-tenancy feature into our > > application. With this feature I assume we would have only one session > > factory instance irrespective of the number of tenants. (right?). If so, > > would it lead to reduced heap usage or would the single session factory > > instance occupy the same amount of memory as multiple instances did > before? > > Are there any other performance benefits with this integration? > > > > I wanted to get an understanding on this before starting with the actual > > implementation since it involves considerable code changes. > > > > Thanks! > > > _______________________________________________ > hibernate-dev mailing list > hibernate-dev@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/hibernate-dev > _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev