-->
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: Hibernate and DB Replication
PostPosted: Fri May 21, 2004 9:12 pm 
Regular
Regular

Joined: Tue Dec 09, 2003 2:39 pm
Posts: 106
Location: Toronto, Canada
Our adoption of Hibernate is going on to almost 1.5 years now. We are now in the process of replacing an in-house persistence mechanism on another project with Hibernate. We haven't had any real problems thus far and the development team are huge endorsers of the product. Thanks.

Question:

We have geographically disparate EIS database tiers throughout North America and have been using products such as PeerDirect replication for over 4 years to manage our database replication.

Is there anything specific to Hibernate that we should be made aware of when using database replication?

One question that comes to mind is how will Hibernate will behave when the 2nd level cache becomes stale due to replication?

Are there any best practices out there in the field?

Regards,
Roll


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 22, 2004 7:17 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Of course you have to be careful whenever another process accesses the same database, especially when using caching. Some hints and tips:

- If possible, do the replication at times where there is no access to the application (pretty clear)
- If you can, clear the cache programmatically after replication.
- If not, use the cache only for non-critical, read-mostly data, and set a reasonable cache-expiery time

In general, keep away from caching often modified, buisness critical classes.


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.