-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Multi-tenancy webinar questions
PostPosted: Mon Jul 25, 2011 4:54 pm 
Newbie

Joined: Wed Jun 17, 2009 5:27 pm
Posts: 9
I just watched the multi-tenancy webinar http://www.vimeo.com/20296211 and had a few questions about what was discussed.

1. It was stated that if you're using a separate schema approach you need to turn off the lvl 2 cache. The idea was that customer 1 would be present in all schema's. If you implement a id generator such that the id's were unique across the entire set of schemas would it be safe to use a lvl 2 cache?

2. At one point Steve said Hibernate 4 was going to handle a lot of this but that it was still in discussion. Is there any documentation that shows what was decided and how it was implemented?


Top
 Profile  
 
 Post subject: Re: Multi-tenancy webinar questions
PostPosted: Mon Aug 01, 2011 10:40 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
prestonfm wrote:
1. It was stated that if you're using a separate schema approach you need to turn off the lvl 2 cache. The idea was that customer 1 would be present in all schema's. If you implement a id generator such that the id's were unique across the entire set of schemas would it be safe to use a lvl 2 cache?


Well specifically I believe I said that without the added support *in* Hibernate you would need to turn off second level cache. And yes, even without the multi-tenancy support added in Hibernate 4 if you could implement an id generator that generated unique ids across all tenants (uuid, for example) then caching could be used.

prestonfm wrote:
2. At one point Steve said Hibernate 4 was going to handle a lot of this but that it was still in discussion. Is there any documentation that shows what was decided and how it was implemented?

Not sure to what you are referring specifically. Hibernate 4 already has multi-tenancy support for the separate schema approaches. What is lacking is support for discriminated approaches. That will come in 4.1 or later.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.