]> git.xonotic.org Git - xonotic/xonstat.git/commit - xonstat/__init__.py
Make the active players/servers/maps use the cache.
authorAnt Zucaro <azucaro@gmail.com>
Sat, 6 Feb 2016 21:21:44 +0000 (16:21 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Sat, 6 Feb 2016 21:21:44 +0000 (16:21 -0500)
commit5e7c58ce773acd93dbd00900fcab0caa3e959909
treec8043a4d6d90f69c0cb344c036b52ee4f8039c9f
parentc14f6e5956daa7646a4bf4d5204073bdf6808f72
Make the active players/servers/maps use the cache.

Instead of fetching from the base data, the active players/server/maps views
will fetch from the so-called "materialized view" tables instead. These tables
are precomputed and will be MUCH faster, performance-wise. Regular Beaker
caching remains the same for these, and the paginated pages now only support
clicking "more" until the list is exhausted. Perhaps in the future they will be
fetched via JSON and appended to the page in a "never-ending scroll" thing.
xonstat/__init__.py
xonstat/models.py
xonstat/templates/main_index.mako
xonstat/templates/top_maps_by_times_played.mako
xonstat/templates/top_players_by_time.mako
xonstat/templates/top_servers_by_players.mako
xonstat/views/__init__.py
xonstat/views/main.py