Re: Need to Check MySql Query Time from Hibernate
Hi Jeyson,
You have access to the execution time via com.mysql.cj.Query#getExecuteTime(). All Connector/J statements implement this interface.
You can use this method directly or inside your own QueryInterceptor implementation. The latter allows you to process this information without having to change your code.
Please see the discussion in the topic
Profiling / recording query timing data with QueryInterceptor for additional details.
Also see
Bug#97714 and the
actual implementation.
IHTH
Subject
Written By
Posted
Re: Need to Check MySql Query Time from Hibernate
August 31, 2021 09:02AM
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.