statistics: Execution time of a query

Description

Currently we have min, average and max execution time.
Could be useful to log each query execution time.

Attachments

1

Activity

Show:

Steve EbersoleMarch 21, 2011 at 7:08 PM

Bulk closing stale resolved issues

Strong LiuDecember 11, 2010 at 6:57 AM

open another jira please

PhilippePDecember 10, 2010 at 6:57 PM

This is nice for debugging, but I don't think it should log to info level.

Hibernate is completely silent at info level except at startup. Having this log at info suddenly makes Hibernate very verbose when making bulk operations. Furthermore, the current "logSummary" method logs summary statistics at info level, but only "on demand".

If someone wants to print each HQL execution time, they're probably debugging something. I feel that this should be logged at debug level and activated when people need to (much like org.hibernate.SQL and friends).

Strong LiuJune 29, 2010 at 9:01 AM

fixed in branch35 and trunk, thanks for the patch

Markus MerderJanuary 28, 2009 at 6:47 PM

I attached a patch, which logs the execution time of hql queries. You can turn that on by enabling statistics and set log level of org.hibernate.stat.StatisticsImpl to INFO.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Priority

Created December 16, 2008 at 4:42 PM
Updated March 21, 2011 at 7:08 PM
Resolved June 29, 2010 at 9:01 AM