[hibernate-issues] [JIRA] (HHH-14087) Statistics doesn't handle batched queries

Alex CD (JIRA) jira at hibernate.atlassian.net
Fri Jun 26 11:25:22 EDT 2020


Alex CD ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A9b0f6d49-bc76-4aca-875b-c8525b2f039d ) *created* an issue

Hibernate ORM ( https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYzVmYzJhYTMwYTBhNGMxYWFhNWZlN2U0YTllYzczNGYiLCJwIjoiaiJ9 ) / Bug ( https://hibernate.atlassian.net/browse/HHH-14087?atlOrigin=eyJpIjoiYzVmYzJhYTMwYTBhNGMxYWFhNWZlN2U0YTllYzczNGYiLCJwIjoiaiJ9 ) HHH-14087 ( https://hibernate.atlassian.net/browse/HHH-14087?atlOrigin=eyJpIjoiYzVmYzJhYTMwYTBhNGMxYWFhNWZlN2U0YTllYzczNGYiLCJwIjoiaiJ9 ) Statistics doesn't handle batched queries ( https://hibernate.atlassian.net/browse/HHH-14087?atlOrigin=eyJpIjoiYzVmYzJhYTMwYTBhNGMxYWFhNWZlN2U0YTllYzczNGYiLCJwIjoiaiJ9 )

Issue Type: Bug Affects Versions: 5.4.17 Assignee: Unassigned Created: 26/Jun/2020 08:25 AM Priority: Major Reporter: Alex CD ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A9b0f6d49-bc76-4aca-875b-c8525b2f039d )

Statistics.getQueryExecutionCount ( https://docs.jboss.org/hibernate/orm/5.4/userguide/html_single/Hibernate_User_Guide.html#statistics-query ) doesn't include batch query executions.

Usage:

entityManager.unwrap( Session.class ).getSessionFactory().getStatistics().getQueryExecutionCount()

While debuging, *BatchingBatch.performExecution()* is called but the statistics remain the same.

( https://hibernate.atlassian.net/browse/HHH-14087#add-comment?atlOrigin=eyJpIjoiYzVmYzJhYTMwYTBhNGMxYWFhNWZlN2U0YTllYzczNGYiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-14087#add-comment?atlOrigin=eyJpIjoiYzVmYzJhYTMwYTBhNGMxYWFhNWZlN2U0YTllYzczNGYiLCJwIjoiaiJ9 )

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.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100130- sha1:d095cd6 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200626/e1672bd6/attachment.html 


More information about the hibernate-issues mailing list