-->
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: [Performances] Hibernate configuration loading
PostPosted: Mon Jan 14, 2008 6:49 am 
Newbie

Joined: Wed Jan 09, 2008 11:13 am
Posts: 4
Hi all,

As it is said in the subject, I'm having some performances problems with the Hibernate configuration loading (Mapping , database configuration, ...)

My mapping files (hbm) are quite complex so the configuration loading takes about 25 secondes.

This loading time is quite acceptable when I'm loading loads of records but my problem is that I'm using Hibernate for occasional insertions of a dozen of records and sometime less. Therefore, 90% of my process time is the hibernate configuration loading.

If somenone alreadey faced this problem or has a clue on how to bypass it, please let me knwo


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 14, 2008 10:36 am 
Newbie

Joined: Wed Jan 09, 2008 11:13 am
Posts: 4
Hi again,

I think the best way is to create a little server that would store the session using the HibernateUtil class.
Each time, a program will need a connection, it will call the HibernateUtil singleton so there will be no need to open a new connection.

see ya


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.