Web Design Discussion > General Web Design Discussion
system.php: System Stats & mileage figures
Jim:
I'm thinking that rather than digging into the PHP code that calculates the ranks, I might augment the DB to have the ranking info. It's whole lot easier to calculate from my Python data structures during site update than to do in PHP. At the cost of a small increase in DB size, we'll make page loads more efficient (since PHP won't be calculating everyone's stats, sorting them, and then searching for the correct user). I'm going to put that aside until I can get the rest of the pages using the consolidated DB.
Jim:
It was easy enough to fix things without further DB changes. Check out
http://tm.teresco.org/user/system.php?u=mapcat&sys=usaif
for various users and systems, and optionally restricted by region (with rg=) and let me know if you still notice problems.
yakra:
--- Quote from: Jim on June 04, 2016, 04:08:01 pm ---It was easy enough to fix things without further DB changes. Check out
http://tm.teresco.org/user/system.php?u=mapcat&sys=usaif
for various users and systems, and optionally restricted by region (with rg=) and let me know if you still notice problems.
--- End quote ---
Compare system stats on:
http://tm.teresco.org/user/system.php?u=yakra&sys=usame
http://tm.teresco.org/user/system.php?u=deathtopumpkins&sys=usame
Jim:
--- Quote from: yakra on June 04, 2016, 08:36:17 pm ---
--- Quote from: Jim on June 04, 2016, 04:08:01 pm ---It was easy enough to fix things without further DB changes. Check out
http://tm.teresco.org/user/system.php?u=mapcat&sys=usaif
for various users and systems, and optionally restricted by region (with rg=) and let me know if you still notice problems.
--- End quote ---
Compare system stats on:
http://tm.teresco.org/user/system.php?u=yakra&sys=usame
http://tm.teresco.org/user/system.php?u=deathtopumpkins&sys=usame
--- End quote ---
I'll investigate, thanks. The total mileage numbers should come from exactly the same DB entry in each case. Obviously that's not happening.
Jim:
--- Quote from: yakra on June 04, 2016, 08:36:17 pm ---
--- Quote from: Jim on June 04, 2016, 04:08:01 pm ---It was easy enough to fix things without further DB changes. Check out
http://tm.teresco.org/user/system.php?u=mapcat&sys=usaif
for various users and systems, and optionally restricted by region (with rg=) and let me know if you still notice problems.
--- End quote ---
Compare system stats on:
http://tm.teresco.org/user/system.php?u=yakra&sys=usame
http://tm.teresco.org/user/system.php?u=deathtopumpkins&sys=usame
--- End quote ---
No wait, we're OK. That's the old version. Still need to use tmtest.teresco.org. I haven't put the new code into the primary tm.teresco.org area. Sorry about that.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version