-->
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.  [ 1 post ] 
Author Message
 Post subject: Hibernate created different aliases in consecutive queries
PostPosted: Mon Jan 19, 2009 11:30 am 
Newbie

Joined: Mon Jan 19, 2009 11:21 am
Posts: 1
Hi,

I found out by setting show_sql = true, that in my app at least, hibernate will always parse consecutive hql queries from scratch, each time they are run. I assume that because each time, i see the same sql generated but with different aliases. Unfortunately, this means that the underlying rdbms cannot cache those queries and therefore we cannot benefit from such performance improvement.

From what i know hibernate uses prepared statements under the hood. Therefore, i was expecting to see the same sql output each time the same hql query was run. Has anyone come across this issue? Can anyone suggest something that i can do about it?

Cheers!

Lefteris


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.