HakkieDEV
06-26-2005, 04:30 PM
Hi all,
I've some top10 statistics on my index.php, in total 5 different ones.
To make it a bit easier, lets call them stats1, stats2, stats3, stats4, stats5.
This means that a query has to be run 5 times, to select the data, then sort them.
I was wondering if something like this could be done in a cronjob (lets say once a day) and that the results of those 5 querys would be inserted in a new table.
The newtable would be something like:
stats1_userid, stats1_username, stats1_posts, stats2_userid, stats2_username, stats2_posts, etc, etc.
While doing this, I could save 4 querys on my index.php, wich is heavily modded and I am desperate to look for something that could be done with less querys.
Is this possible? if yes, how?
I've some top10 statistics on my index.php, in total 5 different ones.
To make it a bit easier, lets call them stats1, stats2, stats3, stats4, stats5.
This means that a query has to be run 5 times, to select the data, then sort them.
I was wondering if something like this could be done in a cronjob (lets say once a day) and that the results of those 5 querys would be inserted in a new table.
The newtable would be something like:
stats1_userid, stats1_username, stats1_posts, stats2_userid, stats2_username, stats2_posts, etc, etc.
While doing this, I could save 4 querys on my index.php, wich is heavily modded and I am desperate to look for something that could be done with less querys.
Is this possible? if yes, how?