-->
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: SQL name alias in a clustered environment
PostPosted: Thu Jan 20, 2011 11:20 pm 
Newbie

Joined: Mon May 11, 2009 5:06 pm
Posts: 2
Hi,

We are using hibernate on a application that is running on a clustered environment, and I was wondering if there was a way to get hibernate to always use the same SQL alias in its query.
The issue right now is that Hibernate on different member of the cluster will generate different alias, which is according to our database different queries. For example :
select casestatus0_.STATUS_CODE_ID as STATUS1_29_ ...
select casestatus0_.STATUS_CODE_ID as STATUS1_49_ ...

Even though the queries are the same, they are using different alias, which throws a little bit off guard the database, with 2 issues :
* The database has to re-compile the statement
* The reporting off the database is hard to read as some queries are spread on many different forms which makes it harder to trace performance bottlenecks.

Thanks!


Top
 Profile  
 
 Post subject: Re: SQL name alias in a clustered environment
PostPosted: Fri Jan 21, 2011 11:32 pm 
Newbie

Joined: Mon May 11, 2009 5:06 pm
Posts: 2
Answering to myself : http://opensource.atlassian.com/project ... e/HHH-2448

Now the question becomes : Why hasn't this patch been applied?


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.