-->
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.  [ 1 post ] 
Author Message
 Post subject: Which one is better with hibernate: multiple/Single database
PostPosted: Tue Oct 30, 2007 4:49 am 
Newbie

Joined: Wed Sep 05, 2007 2:26 am
Posts: 5
Hello All,

I have a design decision to make w.r.to usage with
Hibernate, kindly advice:

(I use MySql-5 with Hibernate-3)

For ex:
I have several Schools with several student record
tables (1095 tables) in it. As the data increase in tables,
it increases the search time, for which i thought i shall use
different database in MySql for each School (which have
the same table structure).

In hibernate getting handle to a session factory is taking
lot of time (35sec per session factory, as i have lots of
resource mapping files). If i use several databases, i need
to have session factory per database and this increases the
startup time.

Kindly advice me if the following is advisable:
1) Going for different databases instead of using one
database. (will it effect in any way if later i change
from MySQL to Oracle etc)

2) Is there any better way to minimize the session startup
time? With several databases, there will be several session
factories and is it good to have them in such way?

I was thinking to make the session factories as variables in
application context in app server. Will that help!?


Thanks in advance,
Regards,
Sanjeev


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

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.