-->
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: Upgrading 3.3.1 to 3.5.0, getting very slow queries
PostPosted: Thu Sep 02, 2010 10:59 am 
Newbie

Joined: Mon May 25, 2009 11:39 am
Posts: 2
Hi,

I've been spending some time investigating whether our application can be upgraded to use Hibernate 3.5.0 (from 3.3.1). I've found that one particularly query (14 joins) that worked fine and fast in the old Hibernate now joins 23 tables (the same, though many are joined twice) and this makes MySQL (5.1) choke (8.5 minutes to do an explain vs. instantly before).

I suspect some default joining strategy changed somewhere in between my versions, but I can't seem to find anything.

Any idea what's going on and what I can do about it?

Thanks,
Martin


Top
 Profile  
 
 Post subject: Re: Upgrading 3.3.1 to 3.5.0, getting very slow queries
PostPosted: Thu Sep 02, 2010 4:01 pm 
Expert
Expert

Joined: Wed Mar 03, 2004 6:35 am
Posts: 1240
Location: Lund, Sweden
I found something similar in my own application and found this: http://opensource.atlassian.com/project ... e/HHH-4091

It was solved by fixing the queries that used duplicate implicit joins.


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.