diff options
author | Dan McGee <dan@archlinux.org> | 2013-04-13 11:33:17 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2013-04-13 11:41:33 -0500 |
commit | 2c24ee9100a9e60fec16055d6496caeda3a1d8e2 (patch) | |
tree | 7d7ac7f0ab84cd22d57545fc408d9f41e9028cfc /mirrors/views.py | |
parent | 06e1e857abfdf7f95661d337ce3c315bd51fb837 (diff) |
Calculate average URL delay in the database
Rather than doing this in the Python code and needing 12,000+ rows
returned from the database, we can do it in the database and get fewer
than 300 rows back.
If I recall correctly, the reason this was not done originally was due
to our usage of MySQL and some really bad date math/overflow stuff it
did when the interval between last_sync and check_time were greater than
about a week. Luckily, we have switched to using a more sane database.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors/views.py')
0 files changed, 0 insertions, 0 deletions