HHH-3659 statistics: Execution time of a query
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19847 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
e7a5de444c
commit
c251637ed6
|
@ -293,6 +293,7 @@ public class StatisticsImpl implements Statistics, StatisticsImplementor {
|
||||||
if (hql!=null) {
|
if (hql!=null) {
|
||||||
QueryStatisticsImpl qs = (QueryStatisticsImpl) getQueryStatistics(hql);
|
QueryStatisticsImpl qs = (QueryStatisticsImpl) getQueryStatistics(hql);
|
||||||
qs.executed(rows, time);
|
qs.executed(rows, time);
|
||||||
|
log.info( "HQL: {}, time: {}ms, rows: {}", new Object[]{hql, new Long( time ), new Long( rows )} );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue