-->
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.  [ 7 posts ] 
Author Message
 Post subject: Starting Hibernate
PostPosted: Wed Mar 10, 2004 6:03 pm 
Newbie

Joined: Thu Mar 04, 2004 3:55 pm
Posts: 8
Hi,

My application have almost 200 persistent classes.
There is no application server on the environment.
SessionFactory is being built on a Singleton,
but it takes about 2 minutes.
The time to start the application is unacceptable.
I thought to create many SessionFactorys, each one with some persistent classes, but each SessionFactory will use one connection to database.

Does anybody have some suggestion ?

Why Hibernate don't save SessionFactory's Configurations
to posterior use ?

Thanks,

Douglas


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 10, 2004 6:37 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Two minutes seems very long for 200 classes. Are these classes enormous?

We plan to make the Configuration object serializable to try and help improve startup times, we realize it is an issue.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 11, 2004 7:41 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
I have about 4 seconds startup time for 50 medium-sized persistent classes on a cheap machine.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 11, 2004 7:50 am 
Newbie

Joined: Thu Mar 04, 2004 3:55 pm
Posts: 8
The classes are reasonably big.

Really serialization of the Configuration objects will be a great feature.

Do you have estimate of when this will be implemented ?

Thanks a lot.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 11, 2004 8:22 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
We never commit to timeframes, but this would be a 2.2 feature, I doubt you will see it in the 2.1 branch.

Its probably not hard to implement it yourself, btw.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 17, 2004 9:56 am 
Newbie

Joined: Wed Apr 21, 2004 1:02 pm
Posts: 2
I have the same issue here.
To load 517 classes my notebook (HP nx9005) takes 6 minutes.
This serialization of the Configuration will be done in 2.2 ?
Are there a open issue to this on JIRA ?


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 17, 2004 10:47 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
http://forum.hibernate.org/viewtopic.php?t=930464 - take a look there, work is done in v22branch


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 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.