-->
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: database Query pasing for HQL Queries
PostPosted: Fri Aug 08, 2008 9:02 am 
Newbie

Joined: Fri Aug 08, 2008 8:47 am
Posts: 1
Hi Hibernate Gurus,

During one of the performance issue evaluation we found one issue/query

We are using Hibernate 3.0

Quote:
Issue /Query : For some HQL queries AWR Report from Oracle 10g shows that
Section : SQL ordered by Parse Calls , in this section queries are having same Parse Calls and Same Execution For example,

<B>Parse Calls Executions % Total Parses SQL Id
49,739 49,739 21.82 15unhakmkq3rw
</B>


Quote:
upon logging Translated queries also shows it uses bind variables
(example ....this_.realm_guid in (?, ?) and this_.locale_guid in (?, ?) )


Now Hibernate says they are always using PreparedStatement for execution then how is it possible that the parsing and execution are same ?

I am completely unaware in this area.

Help will be much appriciated.

Thanks in advance.
-Tarak


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 14, 2008 3:47 am 
Newbie

Joined: Mon Oct 16, 2006 10:23 am
Posts: 8
We're also seeing this, and would appreciate some documentation on how to make this perform better.

http://forum.hibernate.org/viewtopic.php?t=944025 mentions setting 'conn.setConnectionCachingEnabled(true);' on the connection might help, but a more `practical' guide to setting this up correctly would certainly be useful.


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.