Hibernate Slow Query Log – The easiest way to find slow queries

preview_player
Показать описание
One of the common questions when analyzing a slow application is if there are any slow database queries. You can, of course, monitor these queries on your database. But then you still need to match them with a part of your Java code. And because there is no easy way to see what happened immediately before or after a specific query, this can take much more effort than it should. Since Hibernate 5.4.5, you can also get this information from Hibernate’s slow query log. Its integration into your application log can make your analysis a lot easier.

Links mentioned:
Hibernate Logging Guide – Use the right config for development and production :

Like my channel? Subscribe!

Join the free Member Library:

Want to connect with me?

#Hibernate #SlowQueryLog #PerformanceTuning
Рекомендации по теме
Комментарии
Автор

You use to do live YouTube sessions and now you stopped it. I really liked those sessions. I learnt a lot.

sagarrout
Автор

Hi :) Kannst du mir sagen was performanter ist, wenn man Entities bzw. Datenbankeinträge löschen möchte? Entweder Hibernate/Spring das ein Entity managed und man sowas wie CascadeType.REMOVE für Entities in anderen Entities verwendet und dann den Parent löscht und alles darunter entfernt wird? Oder man per ID alle Parents und dann per ID alle Children unterhalb des Entities per native Delete Statement entfernt?

msfrazzy