-->
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: get a problem, update to 2.10
PostPosted: Wed Jan 07, 2004 9:43 pm 
Newbie

Joined: Wed Jan 07, 2004 6:13 am
Posts: 13
When i update the hibernate from 2.03 to 2.10,The below code get a performance problem.

// construct query here

for(int i = 0; i < params.size();i ++) {
// set the paramer for the query
query.list();
......
}

when the size is 200, in 2.03 it only need 1000 ms , but in 2.10, it spend
20*1000ms since mostly of query get nothing! since mostly of query cannot get object, it will not the problem of new cglib
I use the default configuration . I think the default configuration of new version don't use preparestatment correctly. i try to set the batch size , but dont' work well.

I also try to insert /update record in a cycle, it also spent more time than 2.03.
Is there anyone can help me?


Top
 Profile  
 
 Post subject: Re: get a problem, update to 2.10
PostPosted: Mon Jan 12, 2004 7:13 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
t2 wrote:
I think the default configuration of new version don't use preparestatment correctly.

Hibernate internal connection cache don't support prepared statement anymore. It is not intended to be used in production mode.
Use a good connection cache (app server, c3p0, dbcp, ...)

_________________
Emmanuel


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.