-->
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: How to get query execution time
PostPosted: Sat Dec 29, 2012 9:08 am 
Regular
Regular

Joined: Sun Oct 26, 2003 9:02 pm
Posts: 90
Hi

I read that there was a patch on version 3.6 that would allow Hibernate to log execution time for queries. I'm using 3.6.9.Final. I enabled statistics setting the property hibernate.generate_statistics to true. And I enabled DEBUG for org.hibernate but I'm not getting the execution time.

The other way is using the Statistics object and there is a getQueryStatistics(String query) method. Now I have a very big application with lots of queries. Is there a way to get from Hibernate all the queries that I can pass to getQueryStatistics()???

Regards,

Néstor Boscán


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.