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: Hibernate 3.6.x performance regression
PostPosted: Tue Feb 15, 2011 5:52 pm 
Newbie

Joined: Tue Feb 15, 2011 5:41 pm
Posts: 1
Had been running with 3.2.5 version of hibernate for a while, and finally got around to trying to upgrade to the latest version. We're now noticing a performance regression against some of our larger datasets, when doing the equivalent of the following:

Code:
Query q = session.createQuery("select t.id from OurClass t where t.attributeId = ?");
q.setParameter(0, attributeId);
q.list();


Testing against these larger datasets, q.list() may return a list of approximately 4 million ids. In 3.2.5, this query took around 5 seconds on average, but with 3.6.0 and 3.6.1, we're seeing times around 7 seconds. Tested with 3.5.6, and that seems to have the ~5 second runtime, so appears that something in 3.6.0 is causing the slowdown. All versions are generating and running the same database query. My initial profiling attempts haven't gotten very far yet. What's the best way to go about figuring out what's going on here?

-j


Top
 Profile  
 
 Post subject: Re: Hibernate 3.6.x performance regression
PostPosted: Wed Feb 16, 2011 5:08 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
Also I detected some performance regression on 3.6.x, and I opened:

http://opensource.atlassian.com/project ... e/HHH-5790

Please issue some
jstack <pid>
while your application is doing the queries,
if your stacks are often executing method extractLoggableRepresentation()
then it's the problem described in HHH-5790


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.