-->
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: db2 load performance
PostPosted: Fri Jun 18, 2004 11:20 am 
Newbie

Joined: Wed Jan 07, 2004 6:13 am
Posts: 13
When i move the app from mysql to db28.1 , i got some problem about performance. I need to load a object with the specified name . it only spent 100 ms in mysql 4.1, but it will spent more than 600ms in db2 8.1
it's too slow to accept it. I try to use directly jdbc ,and get ony 30ms.

so , is anyone can help me ? below is my code and config file.it urgently.

hibernate version 2.1.2

father

[code]public class ControlObject {
private String id;
private String name;
private String detailName;
private String domainObjName;
private String parentId;
private String itemId;
private String objectId;
private List items;
--- GET


Top
 Profile  
 
 Post subject: hi, is anyone can give me some advices?
PostPosted: Fri Jun 18, 2004 10:52 pm 
Newbie

Joined: Wed Jan 07, 2004 6:13 am
Posts: 13
hi, is anyone can give me some advices?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 19, 2004 10:49 am 
Beginner
Beginner

Joined: Mon Jun 07, 2004 4:21 pm
Posts: 44
Location: Boston
You might want to try with lazy=true in the mapping:

<bag name="items"
cascade="none" inverse="true" outer-join="true"
order-by="id">


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 20, 2004 1:28 am 
Newbie

Joined: Wed Jan 07, 2004 6:13 am
Posts: 13
since I removd the bag tag, it still spent more then 500 ms.
I also try to load the controObject without assocication. it spent
400ms. it 's still not good.


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.