I'm trying to figure out a way to make some web pages more efficient when processing and formatting the data of very large queries (just from the coding side of things). Currently php is being used to process data and my theory is that incorporating javascript and jquery will significantly speed up the processing of this data because it will offset processing from server-side to client-side. Is this true?
Here is a sample of the kind of processing that is going on in my webpage:
$query = "Select * from large_table";
// run the query
$result = maxdb_query($link, $query);
// very large number of rows...
while($row = maxdb_fetch_assoc($result))
{
echo "<tr>";
$calculation1 = $row['col1'] + $row['col2'] / $row['col3'];
$calculation2 = row['col1'] / row['col2'] - row['col4'];
//... more calculations
echo "<td> " + $row['col1'] + "</td>";
echo "<td> " + $calculation1 + "</td>";
echo "<td> " + $calculation2 + "</td>";
// ... etc.
echo "</tr>";
}
Thanks for the help.