-->
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: Future support in hibernate for master/slave databases?
PostPosted: Fri Dec 02, 2005 7:09 pm 
Newbie

Joined: Sun Jul 31, 2005 11:12 pm
Posts: 8
Companies such as yahoo do this, it's a very scalable design for web apps where you frequently read more than you write thus having slave databases you read from to generate reports and one master database you write to is very beneficial. (Sorry for the runon : )

I could see the benefit of configuring hibernate such that you have one jdbc connection be in fact 2 jdbc connections, 1 for reading, the other for writing. So you could query an object and it comes from the read jdbc connection. Then when you write it out it goes to the write jdbc connection.

This is actually how yahoo does it via their perl DBI wrapper.

Thoughts?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 03, 2005 9:56 am 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
You can make it "transparent" for hibernte, use custom connection provider or wrapp jdbc driver.


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.