-->
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.  [ 8 posts ] 
Author Message
 Post subject: Hibernate startup time
PostPosted: Wed Apr 09, 2008 3:43 am 
Beginner
Beginner

Joined: Mon Apr 07, 2008 12:49 pm
Posts: 33
Hey,

I am working with jboss 4.2 and hibernate 3.2. (JPA)

we need to work in rapid development cycle .
the problem is that we spent around 1.40 minutes on hibermate startup.
we have around 300 entites and a lot of name queries.

In development quick startup is more important for me from fast execution.

Can i configure some parameters that will cauesd to startup to be faster?
Can i for example set hibernate to not compile name queries on startup?

Thank you


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 09, 2008 5:10 am 
Beginner
Beginner

Joined: Fri Aug 24, 2007 4:46 am
Posts: 36
Location: Bielefeld / Germany
Did you try the following hints:

http://www.hibernate.org/194.html
http://www.hibernate.org/300.html

HTH, Maik


Last edited by mjablonski on Wed Apr 09, 2008 5:14 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Thanks ,but i am working with JPA
PostPosted: Wed Apr 09, 2008 5:13 am 
Beginner
Beginner

Joined: Mon Apr 07, 2008 12:49 pm
Posts: 33
jboss4.2 as server and hibernate as implementor.

i work with JPA annotation, so its not rellevant.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 09, 2008 8:00 am 
Expert
Expert

Joined: Thu Jul 05, 2007 9:38 am
Posts: 287
Can you cluster your entities in Modules, so each developer has only to configure the module(s) she is using, thus reducing the number of entities?

_________________
Please rate useful posts.


Schauderhaft: Softwaredevelopment, Projectmanagement, Qualitymanagement and all things "schauderhaft"


Top
 Profile  
 
 Post subject: No, i cannot
PostPosted: Wed Apr 09, 2008 8:14 am 
Beginner
Beginner

Joined: Mon Apr 07, 2008 12:49 pm
Posts: 33
Thank you


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 10, 2008 6:51 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
It's hard to believe that your 300 entities are all tied to one another with no independent subgraphs.

_________________
Emmanuel


Top
 Profile  
 
 Post subject: We are working on NMS (netwrok management system)
PostPosted: Thu Apr 10, 2008 8:56 pm 
Beginner
Beginner

Joined: Mon Apr 07, 2008 12:49 pm
Posts: 33
In this kind of system its very hard to isolate groups of entities.

Do you have any idea on how to reduce startup time ? (i am willing to pay in runtime)

Thank you


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 11, 2008 1:13 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
sub modules are the best approach unfortunately. This is a work we will probably do in Hibernate 4 but it requires a lot of rewriting and play with concurrency

_________________
Emmanuel


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