-->
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: Comparison between using dblink and multiple sessionfactory
PostPosted: Mon Feb 11, 2008 7:39 am 
Newbie

Joined: Mon Feb 11, 2008 7:37 am
Posts: 1
Hi,

I have an application which currently uses one datasource. We have a new requirement, for which we need to fetch some data from another database.

There are two options.
1. Create a view in the second database and access that view by creating another sessionfactory in the code and access it directly.

2. create a dblink from first db to the second db and use synonyms to access the data from second db.

The question is which option is better(performance and design wise)

Thanks
Deepak


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 11, 2008 3:14 pm 
Senior
Senior

Joined: Fri Jun 01, 2007 12:41 pm
Posts: 121
option 1 is preferable


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.