Hello all,
So I have implemented a system on part of my job contract that requires a database of about 10 (columns ) * 4000 (rows), now for each row a specific calculation is made. These rows are displayed upon the selection of the previous parent. For example:
Block A will contain a1,a2,a3,a4 and so on.
The user, if selected all the blocks will see the full set of rows (4000). The calculation will then run through all the rows and use the data from the associated 8 columns (as the two before are used to display the rows).
For example the query is getting data that is specific to that row such as:
$query = mysql_query("SELECT * FROM table WHERE parent = 'x' and child = 'y');
However carrying out this calculation for each row can take up to 5 minutes and my boss is moaning on about how this is unacceptable and we need to do it in a few seconds... How would I shorten the speed of the calculations?
Regards,
So I have implemented a system on part of my job contract that requires a database of about 10 (columns ) * 4000 (rows), now for each row a specific calculation is made. These rows are displayed upon the selection of the previous parent. For example:
Block A will contain a1,a2,a3,a4 and so on.
The user, if selected all the blocks will see the full set of rows (4000). The calculation will then run through all the rows and use the data from the associated 8 columns (as the two before are used to display the rows).
For example the query is getting data that is specific to that row such as:
$query = mysql_query("SELECT * FROM table WHERE parent = 'x' and child = 'y');
However carrying out this calculation for each row can take up to 5 minutes and my boss is moaning on about how this is unacceptable and we need to do it in a few seconds... How would I shorten the speed of the calculations?
Regards,