-->
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: Sessionfactory Startup Performance
PostPosted: Fri Apr 04, 2008 6:04 am 
Newbie

Joined: Sun Dec 30, 2007 1:08 pm
Posts: 14
Hi,
I have a rather complex Object Graph that consists of 44 classes. All classes are mapped with Hibernate XML Mapping files (with cascade relationships and the usual meta tags for equals and toString). All classes are rather small (about 12 properties on average).

It takes about 5 seconds to create the SessionFactory ( I use the "standard" HibernateUtil to create it). It is never faster than 4 seconds and sometimes it even takes about 7 seconds.

Is this normal for 44 classes? This is the first time I use Hibernate for a Swing desktop application. If I would be on a server these 5 seconds would not really bother me but for a desktop application 5 extra seconds to start an application is annoying.

I've already tried the performance Tips on:http://www.hibernate.org/194.html
The serialization helps a little bit and I dont get the 7 seconds worst case anymore. But still I think parsing 44 small XML Files should be faster.

Any suggestions? Would Annotations be faster for example?

I use:
Hibernate 3.2.6.ga
Windows XP Professional SP2
On a dual core with 1 Gig RAM

best regards,

Christian


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.