I have an HTML table in a PHP project which is filled with data from MYSQL, the Select with which the table is filled, among other things, by 3 INNER JOIN, when executing the query from Workbenck this delay approximately 0.428 seconds in perform it but when entering the page that contains the HTML table it takes between 5 and 6 seconds to execute it which I think is a very high time since there are only 600 records.
The way I fill the table is by calling the getters I get from query, something like this:
<table>
<?php foreach($consulta as $data): ?>
<tr>
<td><?php echo $data->getNombre() ?>
</td>
<td><?php echo $data->getCiudad() ?>
</td>
<?php endforeach; ?>
</tr>
</table>