We have in the logging something like
09:53:02 server-1 java[5447]: 2022-03-10 09:53:02.262 INFO 5447 --- [io-18081-exec-6] a.w.w.service.item.LibItemService : logging start
09:53:07 server-1 java[5447]: 2022-03-10 09:53:07.477 DEBUG 5447 --- [io-18081-exec-6] org.hibernate.SQL : select nextval ('lib_id_seq')
Logging is done via
logging:
level:
org:
hibernate:
SQL: TRACE
We are now discussing if the information about the SQL statement is before it is executed or after. The difference is: Whom to blame for the lost 5.2 seconds? The database OR the code which is done before?