-->
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.  [ 4 posts ] 
Author Message
 Post subject: Slow loading
PostPosted: Mon Aug 20, 2007 2:07 pm 
Newbie

Joined: Tue May 08, 2007 3:34 pm
Posts: 19
I am running into problems with slow performance. Is there a way to load only objects needed for each request?

I have created 160 hbm.xml files for each table and during each time I execute session it initializes all objects even though I only use a few of the tables. Is there a way to load only the tables I will use and not all of them? That should speed up the load up time.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 20, 2007 2:32 pm 
Beginner
Beginner

Joined: Fri May 18, 2007 10:28 am
Posts: 48
Location: Madison, WI
Did you try setting the "class" attributes lazy parameter to true or false.

_________________
Please rate if it helped


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 20, 2007 2:40 pm 
Newbie

Joined: Tue May 08, 2007 3:34 pm
Posts: 19
satsranchuser wrote:
Did you try setting the "class" attributes lazy parameter to true or false.


I was just reading on that now. Should it be done like this for all classes?
<class name="rapidReview.core.hibernate.PrJournalRoleInfo" table="PR_JOURNAL_ROLE_INFO" schema="AACR20_DBA" lazy="false">


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 21, 2007 4:40 pm 
Beginner
Beginner

Joined: Fri May 18, 2007 10:28 am
Posts: 48
Location: Madison, WI
Yup! Think that should help. If it is still is slow, then I would see if you can cache it and load all info once and be done with loading.

_________________
Please rate if it helped


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