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
|
|