]> de.git.xonotic.org Git - xonotic/xonstatdb.git/log
xonotic/xonstatdb.git
10 years agoPlaying one Elo game type in the past 30 days will prevent rot.
Ant Zucaro [Mon, 10 Feb 2014 23:32:54 +0000 (18:32 -0500)]
Playing one Elo game type in the past 30 days will prevent rot.

10 years agoFix date range for q4 partition.
Ant Zucaro [Wed, 2 Oct 2013 00:44:38 +0000 (20:44 -0400)]
Fix date range for q4 partition.

10 years agoDamn off-by-one errors. *shakes fist*
antzucaro [Sat, 17 Aug 2013 04:34:33 +0000 (00:34 -0400)]
Damn off-by-one errors. *shakes fist*

10 years agoAdd Elo rot analysis query.
antzucaro [Sat, 17 Aug 2013 04:12:14 +0000 (00:12 -0400)]
Add Elo rot analysis query.

10 years agoUse a new Elo rot scheme.
antzucaro [Sat, 17 Aug 2013 03:51:00 +0000 (23:51 -0400)]
Use a new Elo rot scheme.

The old rot was to decay 1 Elo point per day of inactivity beyond
30 days of inactivity. This was extremely conservative and leads
to people staying on the leaderboards for an extraordinary amount
of time after they have ceased playing (or ceased recording).

The new system uses a weeks-based rot  Starting on your 31st day
of inactivity (as defined by no recorded games in the particular
game type), you will lose 1 point per week of inactivty *each day*.
This looks like so:

Days 1-30: nothing happens - no penalty
Days 31-37: 1 point docked per day
Days 38-44: 2 points docked per day

... and so on.

It is my hope that this system will favor active, skilled players
while at the same time penalizing inactive players.

10 years agoAdd drop and load convenience script.
Ant Zucaro [Sun, 11 Aug 2013 14:01:11 +0000 (10:01 -0400)]
Add drop and load convenience script.

10 years agoVarious typos on Q4.
Ant Zucaro [Thu, 23 May 2013 02:05:53 +0000 (22:05 -0400)]
Various typos on Q4.

10 years agoPartition player weapon stats through 2014.
Ant Zucaro [Thu, 23 May 2013 02:05:06 +0000 (22:05 -0400)]
Partition player weapon stats through 2014.

10 years agoPartition player game stats through 2014.
Ant Zucaro [Thu, 23 May 2013 01:42:56 +0000 (21:42 -0400)]
Partition player game stats through 2014.

10 years agoPartition games through 2014.
Ant Zucaro [Thu, 23 May 2013 01:24:36 +0000 (21:24 -0400)]
Partition games through 2014.

10 years agoYou know what? We don't need tables for the past!
Ant Zucaro [Thu, 23 May 2013 01:11:39 +0000 (21:11 -0400)]
You know what? We don't need tables for the past!

10 years agoConfigure partitions through 2014.
Ant Zucaro [Thu, 23 May 2013 01:05:02 +0000 (21:05 -0400)]
Configure partitions through 2014.

10 years agoAdd rounds, caps fields.
Ant Zucaro [Thu, 23 May 2013 00:58:09 +0000 (20:58 -0400)]
Add rounds, caps fields.

11 years agoAdd team scores table. Partition till 2015.
Ant Zucaro [Sun, 21 Apr 2013 20:36:53 +0000 (16:36 -0400)]
Add team scores table. Partition till 2015.

11 years agoAdd port to servers table
Ant Zucaro [Tue, 5 Feb 2013 08:26:43 +0000 (03:26 -0500)]
Add port to servers table

11 years agoAdd mod string to games table
Ant Zucaro [Tue, 5 Feb 2013 08:25:09 +0000 (03:25 -0500)]
Add mod string to games table

11 years agoIdentify games with bad ranks.
Ant Zucaro [Fri, 1 Feb 2013 21:21:26 +0000 (16:21 -0500)]
Identify games with bad ranks.

11 years agoModify column structure for better reuse.
Ant Zucaro [Fri, 25 Jan 2013 03:28:22 +0000 (22:28 -0500)]
Modify column structure for better reuse.

11 years agoMerge branch 'master' of github.com:antzucaro/xonstatdb
Ant Zucaro [Wed, 16 Jan 2013 02:28:35 +0000 (21:28 -0500)]
Merge branch 'master' of github.com:antzucaro/xonstatdb

11 years agoAdd teamrank and scoreboardpos fields.
Ant Zucaro [Wed, 16 Jan 2013 02:28:12 +0000 (21:28 -0500)]
Add teamrank and scoreboardpos fields.

11 years agoMerge branch 'master' of github.com:antzucaro/xonstatdb
antzucaro [Wed, 2 Jan 2013 16:47:59 +0000 (11:47 -0500)]
Merge branch 'master' of github.com:antzucaro/xonstatdb

11 years agoUse greatest instead of least.
antzucaro [Wed, 2 Jan 2013 16:47:42 +0000 (11:47 -0500)]
Use greatest instead of least.

11 years agoAdd win ratio query
Ant Zucaro [Mon, 31 Dec 2012 03:45:33 +0000 (22:45 -0500)]
Add win ratio query

11 years agoAdd player retention query
Ant Zucaro [Mon, 31 Dec 2012 03:41:11 +0000 (22:41 -0500)]
Add player retention query

11 years agoAdd primary key to summary stats. SQLAlchemy requires it.
Ant Zucaro [Sat, 15 Dec 2012 15:17:44 +0000 (10:17 -0500)]
Add primary key to summary stats. SQLAlchemy requires it.

11 years agoRemove the commit. It is redundant.
Ant Zucaro [Sat, 15 Dec 2012 15:07:08 +0000 (10:07 -0500)]
Remove the commit. It is redundant.

11 years agoAdd a small script to update the summary stats table.
Ant Zucaro [Sat, 15 Dec 2012 14:58:10 +0000 (09:58 -0500)]
Add a small script to update the summary stats table.

This script is intended to be run from cron on a semi-frequent
basis, like hourly or daily. One would adjust that depending on
the volume of new games/players/servers.

11 years agoAdd the summary stats table to the build.
Ant Zucaro [Sat, 15 Dec 2012 14:48:26 +0000 (09:48 -0500)]
Add the summary stats table to the build.

11 years agoAdd support for summary statistics.
Ant Zucaro [Sat, 15 Dec 2012 14:44:06 +0000 (09:44 -0500)]
Add support for summary statistics.

The summary statistics table is very small, and is intended
to be populated via cron to avoid any lag in the actual webapp
when scanning all of the rows in players, games, and servers.
Even caching such a query would yield bad performance during
invalidation, so I've opted to make this table be populated with
an offline script similar to the one for ranks.

11 years agoPut a blurb about the misc functions into the README.
Ant Zucaro [Sun, 2 Dec 2012 19:43:36 +0000 (14:43 -0500)]
Put a blurb about the misc functions into the README.

11 years agoAdd elo rot script.
Ant Zucaro [Sun, 2 Dec 2012 19:30:49 +0000 (14:30 -0500)]
Add elo rot script.

11 years agoAdd an update_dt to the player_elos table.
Ant Zucaro [Sun, 2 Dec 2012 13:03:23 +0000 (08:03 -0500)]
Add an update_dt to the player_elos table.

11 years agoFix merge.
Ant Zucaro [Mon, 29 Oct 2012 16:03:08 +0000 (12:03 -0400)]
Fix merge.

11 years agoAdd captimes table to the build.
Ant Zucaro [Mon, 29 Oct 2012 15:55:11 +0000 (11:55 -0400)]
Add captimes table to the build.

11 years agoAdd indexes to the game and weapon stats tables. Store captimes.
Ant Zucaro [Mon, 29 Oct 2012 15:53:47 +0000 (11:53 -0400)]
Add indexes to the game and weapon stats tables. Store captimes.

11 years agoMerge branch 'master' of ssh://push.git.xonotic.org/xonstatdb
Ant Zucaro [Fri, 24 Aug 2012 13:59:56 +0000 (09:59 -0400)]
Merge branch 'master' of ssh://push.git.xonotic.org/xonstatdb

11 years agoIndex game_id and player_id for performance (and badges).
Ant Zucaro [Fri, 24 Aug 2012 13:55:35 +0000 (09:55 -0400)]
Index game_id and player_id for performance (and badges).

11 years agoAdd players to ladder associative table, with ranks.
Ant Zucaro [Tue, 21 Aug 2012 21:40:16 +0000 (17:40 -0400)]
Add players to ladder associative table, with ranks.

11 years agoChange title to name.
Ant Zucaro [Tue, 21 Aug 2012 21:30:23 +0000 (17:30 -0400)]
Change title to name.

11 years agoAdd the ladder code table.
Ant Zucaro [Tue, 21 Aug 2012 01:28:58 +0000 (21:28 -0400)]
Add the ladder code table.

11 years agoMerge branch 'master' of github.com:antzucaro/xonstatdb
Ant Zucaro [Mon, 11 Jun 2012 11:03:42 +0000 (07:03 -0400)]
Merge branch 'master' of github.com:antzucaro/xonstatdb

11 years agoAdd an active indicator to player_elo.
Ant Zucaro [Mon, 11 Jun 2012 11:01:05 +0000 (07:01 -0400)]
Add an active indicator to player_elo.

This will allow me to disable the ranking of players without
disabling the entire player record. This is to be applied
in cases where players have cheated more than once but don't
warrant a full kickban. Instead I can now make their record
essentially harmless with respect to everyone else.

11 years agoMerge pull request #1 from nyov/master
antzucaro [Fri, 27 Apr 2012 13:52:13 +0000 (06:52 -0700)]
Merge pull request #1 from nyov/master

updated README

11 years agoModified Readme
nyov [Fri, 27 Apr 2012 02:05:55 +0000 (04:05 +0200)]
Modified Readme

12 years agoDefault games to 1 in another place.
Ant Zucaro [Sat, 21 Apr 2012 20:30:37 +0000 (16:30 -0400)]
Default games to 1 in another place.

12 years agoDefault total games to 1 and also print who we are merging.
Ant Zucaro [Sat, 21 Apr 2012 20:25:40 +0000 (16:25 -0400)]
Default total games to 1 and also print who we are merging.

12 years agoDo a weighted average instead of picking the max.
Ant Zucaro [Sat, 21 Apr 2012 20:00:27 +0000 (16:00 -0400)]
Do a weighted average instead of picking the max.

12 years agoDamn you, pgadmin!
Ant Zucaro [Tue, 20 Mar 2012 12:53:04 +0000 (08:53 -0400)]
Damn you, pgadmin!

12 years agoAdding yo dawg, just for the hell of it.
Ant Zucaro [Tue, 20 Mar 2012 12:44:18 +0000 (08:44 -0400)]
Adding yo dawg, just for the hell of it.

12 years agoMerge branch 'master' of github.com:antzucaro/xonstatdb
Ant Zucaro [Tue, 20 Mar 2012 12:43:12 +0000 (08:43 -0400)]
Merge branch 'master' of github.com:antzucaro/xonstatdb

12 years agoA simple dashboard report for providing high level stats...about stats!
Ant Zucaro [Tue, 20 Mar 2012 12:41:40 +0000 (08:41 -0400)]
A simple dashboard report for providing high level stats...about stats!

12 years agoGet rid of bad header chars in the file. All else is the same.
Ant Zucaro [Thu, 1 Mar 2012 04:08:20 +0000 (23:08 -0500)]
Get rid of bad header chars in the file. All else is the same.

12 years agoAdd advanced elo checks in the merge. We want an optimistic view of the player, so...
Ant Zucaro [Wed, 29 Feb 2012 17:26:07 +0000 (12:26 -0500)]
Add advanced elo checks in the merge. We want an optimistic view of the player, so we will go with the best possible elo.

12 years agoFunction to merge two players.
Ant Zucaro [Wed, 29 Feb 2012 12:05:05 +0000 (07:05 -0500)]
Function to merge two players.

12 years agoSupport deactivating players.
Ant Zucaro [Mon, 20 Feb 2012 16:42:21 +0000 (11:42 -0500)]
Support deactivating players.

12 years agoChange game type codes to match new gametypes abbreviations.
Ant Zucaro [Mon, 20 Feb 2012 15:25:35 +0000 (10:25 -0500)]
Change game type codes to match new gametypes abbreviations.

12 years agoAdd rank history to the build.
Ant Zucaro [Sun, 22 Jan 2012 17:36:34 +0000 (12:36 -0500)]
Add rank history to the build.

12 years agoWhoops, add the 32 game req.
Ant Zucaro [Sun, 22 Jan 2012 17:36:21 +0000 (12:36 -0500)]
Whoops, add the 32 game req.

12 years agoSave rank history and also do not generate ranks if < 32 games played for the game...
Ant Zucaro [Sun, 22 Jan 2012 17:35:41 +0000 (12:35 -0500)]
Save rank history and also do not generate ranks if < 32 games played for the game type.

12 years agoAdd rank history table.
Ant Zucaro [Sun, 22 Jan 2012 17:31:50 +0000 (12:31 -0500)]
Add rank history table.

12 years agoAdd elos and ranks to the build file.
Ant Zucaro [Sun, 22 Jan 2012 04:08:33 +0000 (23:08 -0500)]
Add elos and ranks to the build file.

12 years agoFix player_ranks.
Ant Zucaro [Sun, 22 Jan 2012 04:07:24 +0000 (23:07 -0500)]
Fix player_ranks.

12 years agoSmall transaction to regenerate ranks.
Ant Zucaro [Sun, 22 Jan 2012 03:54:41 +0000 (22:54 -0500)]
Small transaction to regenerate ranks.

12 years agoAdd ranks table for batch purposes.
Ant Zucaro [Sun, 22 Jan 2012 03:49:43 +0000 (22:49 -0500)]
Add ranks table for batch purposes.

12 years agoAdd player Elo support.
Ant Zucaro [Sat, 31 Dec 2011 22:46:11 +0000 (17:46 -0500)]
Add player Elo support.

12 years agoFix unique key definition on games.
Ant Zucaro [Thu, 15 Dec 2011 02:55:25 +0000 (21:55 -0500)]
Fix unique key definition on games.

12 years agoAdd the duel game type.
Ant Zucaro [Thu, 15 Dec 2011 02:41:23 +0000 (21:41 -0500)]
Add the duel game type.

12 years agoThe match_id is now a varchar.
Ant Zucaro [Tue, 13 Dec 2011 00:45:20 +0000 (19:45 -0500)]
The match_id is now a varchar.

12 years agoAdd a unique constraint on server_id/match_id.
Ant Zucaro [Mon, 5 Dec 2011 17:15:31 +0000 (12:15 -0500)]
Add a unique constraint on server_id/match_id.

12 years agoAdd a match_id to each games row.
Ant Zucaro [Thu, 1 Dec 2011 17:00:34 +0000 (12:00 -0500)]
Add a match_id to each games row.

12 years agoRevert the functional index on players table. It won't be used with LIKE query anyway.
Ant Zucaro [Sun, 20 Nov 2011 21:59:06 +0000 (16:59 -0500)]
Revert the functional index on players table. It won't be used with LIKE query anyway.

12 years agoRevert the functional index on stripped_nick. Searches won't benefit from it anyway.
Ant Zucaro [Sun, 20 Nov 2011 21:58:16 +0000 (16:58 -0500)]
Revert the functional index on stripped_nick. Searches won't benefit from it anyway.

12 years agoAdd stripped_nick and indexes for it.
Ant Zucaro [Sun, 20 Nov 2011 02:54:54 +0000 (21:54 -0500)]
Add stripped_nick and indexes for it.

12 years agoAdd default to the create_dt of player game stats.
Ant Zucaro [Thu, 17 Nov 2011 15:15:40 +0000 (10:15 -0500)]
Add default to the create_dt of player game stats.

12 years agoUse UTC timestamps instead of local timestamps.
Ant Zucaro [Wed, 16 Nov 2011 20:22:49 +0000 (15:22 -0500)]
Use UTC timestamps instead of local timestamps.

12 years agoChange to unix encoding.
antzucaro [Wed, 16 Nov 2011 01:01:26 +0000 (20:01 -0500)]
Change to unix encoding.

12 years agoAdd stripped nick to the players table to support future search implementation.
antzucaro [Wed, 16 Nov 2011 01:00:05 +0000 (20:00 -0500)]
Add stripped nick to the players table to support future search implementation.

12 years agoFix the triggers for partitioning.
Ant Zucaro [Wed, 9 Nov 2011 23:15:55 +0000 (18:15 -0500)]
Fix the triggers for partitioning.

12 years agoGet rid of the hashkeys table. It is not needed.
Ant Zucaro [Mon, 31 Oct 2011 01:05:01 +0000 (21:05 -0400)]
Get rid of the hashkeys table. It is not needed.

12 years agoMake the server hashkey an attribute instead of its own table.
Ant Zucaro [Mon, 31 Oct 2011 00:44:34 +0000 (20:44 -0400)]
Make the server hashkey an attribute instead of its own table.

12 years agoEnsure that the hashkeys for player and server are unique, as they are used for lookup.
Ant Zucaro [Fri, 28 Oct 2011 00:33:43 +0000 (20:33 -0400)]
Ensure that the hashkeys for player and server are unique, as they are used for lookup.

12 years agoAdd server hashkey table
Ant Zucaro [Tue, 25 Oct 2011 10:40:54 +0000 (06:40 -0400)]
Add server hashkey table

12 years agoClean up cd_mutator stuff.
Ant Zucaro [Tue, 25 Oct 2011 10:40:36 +0000 (06:40 -0400)]
Clean up cd_mutator stuff.

12 years agoWe no longer need the mutator table or the game types each map supports. Commenting...
Ant Zucaro [Fri, 21 Oct 2011 02:57:24 +0000 (22:57 -0400)]
We no longer need the mutator table or the game types each map supports. Commenting out those definitions

12 years agoAllow up to 128 characters in the player nick
Ant Zucaro [Mon, 17 Oct 2011 15:25:04 +0000 (11:25 -0400)]
Allow up to 128 characters in the player nick

12 years agoAdd nick history table.
antzucaro [Mon, 10 Oct 2011 19:13:35 +0000 (15:13 -0400)]
Add nick history table.

12 years agoRemove unique constraint on pgstats that prevents multiple bot stats.
antzucaro [Mon, 10 Oct 2011 19:06:42 +0000 (15:06 -0400)]
Remove unique constraint on pgstats that prevents multiple bot stats.

12 years agoMake directory location more clear.
antzucaro [Mon, 10 Oct 2011 17:23:54 +0000 (13:23 -0400)]
Make directory location more clear.

12 years agoFix typo on language command.
antzucaro [Mon, 10 Oct 2011 17:22:10 +0000 (13:22 -0400)]
Fix typo on language command.

12 years agoMake schema creation clear. Create pgplsql language.
Ant Zucaro [Thu, 6 Oct 2011 17:06:14 +0000 (13:06 -0400)]
Make schema creation clear. Create pgplsql language.

12 years agoAdd triggers for partitioning functionality.
Ant Zucaro [Thu, 7 Jul 2011 20:04:29 +0000 (16:04 -0400)]
Add triggers for partitioning functionality.

12 years agoRemove stat type column, as we only care about scoreboard stats.
Ant Zucaro [Thu, 7 Jul 2011 19:44:36 +0000 (15:44 -0400)]
Remove stat type column, as we only care about scoreboard stats.

12 years agoFix camping rifle short name
Ant Zucaro [Thu, 30 Jun 2011 02:56:49 +0000 (22:56 -0400)]
Fix camping rifle short name

12 years agoOnce again use the correct weapon names.
Ant Zucaro [Sat, 21 May 2011 02:45:26 +0000 (22:45 -0400)]
Once again use the correct weapon names.

12 years agoMerge branch 'master' of github.com:antzucaro/xonstatdb
Ant Zucaro [Fri, 20 May 2011 02:03:12 +0000 (22:03 -0400)]
Merge branch 'master' of github.com:antzucaro/xonstatdb

12 years agoRemove nick from weapon stats and replace it w/ pgstat id. Remove corresponding const...
Ant Zucaro [Fri, 20 May 2011 02:02:48 +0000 (22:02 -0400)]
Remove nick from weapon stats and replace it w/ pgstat id. Remove corresponding constraint and replace it with an FK to player_game_stats.

12 years agoMake weapon codes match w/ QCSRC weapon codes.
Ant Zucaro [Wed, 18 May 2011 16:24:00 +0000 (12:24 -0400)]
Make weapon codes match w/ QCSRC weapon codes.

12 years agoAdd nick to player_weapon_stats to give anonymous players uniqueness (they always...
Ant Zucaro [Mon, 16 May 2011 03:10:45 +0000 (23:10 -0400)]
Add nick to player_weapon_stats to give anonymous players uniqueness (they always have player_id of 2).

12 years agoAdd alivetime and rank to player_game_stats table.
azucaro [Thu, 28 Apr 2011 12:35:34 +0000 (08:35 -0400)]
Add alivetime and rank to player_game_stats table.

12 years agoMisc fixes.
Ant Zucaro [Thu, 28 Apr 2011 02:43:39 +0000 (22:43 -0400)]
Misc fixes.