Re: Need to Check MySql Query Time from Hibernate
Posted by: jeyson sen
Date: August 11, 2021 10:30AM

I thought of doing similar thing in my Java application (actually did). But with Hibernate I learnt that once db connection is acquired, it can be used in the same Hibernate session to run multiple queries. So effectively we are holding a db connection till Hibernate session is destroyed. There is option to manually terminate session & create a new one for next Hibernate query. I want to check the actual log of that & try to optimize connection holding time. This is what I want to do.

Options: ReplyQuote

Written By
Re: Need to Check MySql Query Time from Hibernate
August 11, 2021 10:30AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.