Re: Need to Check MySql Query Time from Hibernate
If you want to check the execution time in your project, you can use microtime() to calculate start and end times as:
MYSQLi example:
<?
$link = mysqli_connect("localhost", "yourUser", "yourPassword", "yourDB");
$SQL = "SELECT * FROM yourQuery";
$start = microtime(true);
mysqli_query($link,$SQL);
$end = microtime(true) - $start;
echo $end; // result in seconds
?>
Did I hear you right ?
Subject
Written By
Posted
Re: Need to Check MySql Query Time from Hibernate
August 11, 2021 07:04AM
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.