devxlogo

Enabling Hibernate Statistics

Enabling Hibernate Statistics

In order to obtain statistics regarding SQL queries executed via Hibernate, we need to set hibernate.generate_statistics=true.

In Spring, we need to add in application.properties the following setting:

spring.jpa.properties.hibernate.generate_statistics=true
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist