-
Notifications
You must be signed in to change notification settings - Fork 930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NH-3087 - Add support for multi tenancy #974
Comments
Hi, |
As far as I know, no one works on this. It is up to grab. |
And I honestly struggle to understand why: has anyone ever heard of SaaS? Has anyone ever had the need to develop this type of applications? |
Absolutely. We do it on quite a large scale, but configure separate session factories for each tenant. |
Can you share some code, please? I've heared that this approach takes a lot of memory; in addition, session factory creation is an expensive operations: how does this impact the performance? Thank you. |
There's really nothing to it. We cache the "shared" Configuration, augment it with tenant specifics and just create sessionfactories which are resolved using IoC. Yes, it consumes memory. Yes, factory creation is expensive. It's really not a problem for us. |
Paul White created an issue — 13th March 2012, 21:19:19:
Paul White added a comment — 14th March 2012, 15:03:24:
Paul White added a comment — 17th April 2012, 8:07:57:
Oskar Berggren added a comment — 26th May 2012, 20:26:10:
The text was updated successfully, but these errors were encountered: