[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3659) statistics: Execution time of a query

Philippe Laflamme (JIRA) noreply at atlassian.com
Fri Dec 10 11:59:15 EST 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=39338#action_39338 ] 

Philippe Laflamme commented on HHH-3659:
----------------------------------------

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

> statistics: Execution time of a query
> -------------------------------------
>
>                 Key: HHH-3659
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3659
>             Project: Hibernate Core
>          Issue Type: New Feature
>          Components: query-hql, query-sql
>    Affects Versions: 3.3.1
>            Reporter: Anthony Patricio
>            Assignee: Strong Liu
>            Priority: Trivial
>             Fix For: 3.5.4, 3.6.0.Beta1
>
>         Attachments: HHH-3659 StatisticsImpl.patch
>
>
> Currently we have min, average and max execution time.
> Could be useful to log each query execution time.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list