-->
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: Using hibernate on replicated DBMS
PostPosted: Tue Jan 11, 2005 2:58 pm 
Beginner
Beginner

Joined: Thu Jul 01, 2004 1:30 pm
Posts: 20
Location: Tucson, AZ
Hibernate version:2.1

Mapping documents:N/A

Code between sessionFactory.openSession() and session.close():N/A

Full stack trace of any exception that occurs:N/A

Name and version of the database you are using:PostgreSQL 7.4

The generated SQL (show_sql=true):N/A

Debug level Hibernate log excerpt:N/A

When using a multi-master replicated DBMS with Hibernate, the replicated updates may change the database on Hibernate's back, which might in turn cause the objects in the Hibernate cache invalid. How does hibernate handle this issue? Thanks, Stan


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 12, 2005 7:01 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I can't answer because the problem is very geenric, but a good apporach is to use optimistic locking.
Not 2nd level caching a living data is a good idea too. Do no overuse 2nd level cache.

_________________
Emmanuel


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.