-->
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: New Statistics: Used entities
PostPosted: Thu Aug 24, 2006 8:02 am 
Newbie

Joined: Mon Jun 19, 2006 5:35 am
Posts: 14
Hi all,

I'm trying to optimize the startup times of my hibernate based application (Hibernate Version 3.1.2 + Annotations).

Currently the hibernate startup takes approx. 8 seconds for 229 classes. 1 second is spent creating the configuration, 7 seconds building the session factory.

That is actually not bad - something like 0,03 sec per class with most time spent doing some class inspection/reflection whatever. I've profiled the application and it looks as if there are no easy gains to expect. Good work :-)

Simple tests on my side have shown that the time spent building the session is linear to the numer of classes. So the only "easy" way to reduce startup time - mainly for junit tests - is to reduce the number of persisted classes by commenting them out in the hb.xml files.

Nothing new so far for you guys...

But what I'm really missing is a way to find out quickly which persisted classes I need. Therefore it would be great if there was some sort of statistics function which I can turn on at hibernate initialization time and call at the end of my application. The output would be pretty simple - a list of all persisted classes accessed.

Thx in advance for your help.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 29, 2006 5:42 am 
Newbie

Joined: Mon Jun 19, 2006 5:35 am
Posts: 14
Created jira issue with proposed patch

http://opensource.atlassian.com/project ... e/HHH-2035


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.