I have a script that I need to run in under 1 second. I have this line that takes 4.4 seconds on average to execute.
$result = mysqli_query($conn, "SELECT count(*) from record where created_at > '$time'");
The rest of the script takes less than 0.1 second.