Hibernate statistics and metrics are no longuer showing
See original GitHub issuehello,
I just migrated to quarkus 2.4.1. The metrics and statistics are no longuer displayed in console while the sql log is OK !
My “application.properties” file :
...
quarkus.hibernate-orm.database.generation=none
quarkus.hibernate-orm.log.sql=true
quarkus.hibernate-orm.statistics=true
quarkus.hibernate-orm.metrics.enabled=true
...
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
How to activate Hibernate Statistics to analyze performance ...
The first thing we need to do is tell Hibernate to generate statistics for us. Therefore we need to set the system property...
Read more >Hibernate statistics in spring boot not working? - Stack Overflow
Use spring.jpa.properties.hibernate.generate_statistics=true instead-of hibernate.generate_statistics=true.
Read more >A beginner's guide to Hibernate Statistics - Vlad Mihalcea
The Hibernate org.hibernate.stat.Statistics interface contains an exhaustive list of metrics you can inspect in regards to the behavior of the ...
Read more >Activate Hibernate Query Statistics to investigate your ...
My query returned 1 row (the count) in 4ms – obviously there is no performance issue in this example, but this is where...
Read more >Solve Hibernate Performance Issues in Development and ...
There are lots of different ways you can do that. You can analyze your database logs, activate Hibernate's internal logging, use a JDBC...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
FTR I agree with Sanne. I don’t think statistics really belong in the log. At least, except for something the user is really especially interested in, enough to log it themself.
The Panache repository is using the same EntityManager that you’d get by injecting it, as it will look it up via CDI from the same context.
You can also use
Panache.getEntityManager()
if there is a single persistence unit, or you can usePanache.getEntityManager(Clazz)
to get the one managing that specific type if you need to manage ambiguity.