Vlad Mihalcea (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMjJmYzYyZjY0...
) / Improvement (
https://hibernate.atlassian.net/browse/HHH-13879?atlOrigin=eyJpIjoiMjJmYz...
) HHH-13879 (
https://hibernate.atlassian.net/browse/HHH-13879?atlOrigin=eyJpIjoiMjJmYz...
) Slow query log should use System#nanoTime not System#currentTimeMillis (
https://hibernate.atlassian.net/browse/HHH-13879?atlOrigin=eyJpIjoiMjJmYz...
)
Issue Type: Improvement Affects Versions: 5.4.12 Assignee: Vlad Mihalcea (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) Components: hibernate-core Created: 25/Feb/2020 06:26 AM Priority: Major Reporter: Vlad
Mihalcea (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Currently, the slow query log using `System#currentTimeMillis`, that is not suitable for
calculating time durations, as stated by the Java Doc:
Note that while the unit of time of the return value is a millisecond, the
granularity of the value depends on the underlying operating system and
may be larger. For example, many operating systems measure time in units
of tens of milliseconds.
We should use `nanoTime` instead.
(
https://hibernate.atlassian.net/browse/HHH-13879#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-13879#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100121- sha1:a269fed )