[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2948) QueryStatistics.executionMinTime always = 0

pi zhigang (JIRA) noreply at atlassian.com
Tue Nov 13 03:05:30 EST 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_28813 ] 

pi zhigang commented on HHH-2948:
---------------------------------

Currently, the avg, min, max values for first run of every query are:
avg=123, min=0, max=123

at this time, you known, the min value can't be large than 0 for ever.

> QueryStatistics.executionMinTime always = 0 
> --------------------------------------------
>
>                 Key: HHH-2948
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2948
>             Project: Hibernate3
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.2.0.ga
>         Environment: database Oracle10g
>            Reporter: pi zhigang
>            Priority: Critical
>
> Becuase executionMinTime is initialized as zero (long default):
> --- org.hibernate.stat.QueryStatistics.java ----
> private long executionMinTime;
> and, the logic for assignment statement is:
> 	void executed(long rows, long time) {
> 		if (time < executionMinTime) executionMinTime = time;
>                ...
> I think the initial value for executionMinTime should be:
> private long executionMinTime = Long.MAX_VALUE;

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