FAF Stats from the database

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

FAF Stats from the database

Postby nine2 » 06 Jun 2020, 08:58

I will post interesting things I find in the database. All results are outdated (current up to 3/05/2020?).
Any of these could be wrong because I don't know exactly what the data means, I have to guess a bit.
Join the promo discord if you want to help harvest data to work out how to grow FAF. https://discord.gg/8A8KdSm

Cumulative time we have been in game: 436 years. This does NOT count the time three times if there were three players in the game.
Spoiler: show
SELECT
SUM(DurationSec) / 3.154e+7 TotalDurationYears # there are 3.154e+7 seconds in a year
from
(select
startTime,
endTime,
TIME_TO_SEC(TIMEDIFF(endtime, starttime)) DurationSec
from faf.game_stats
where TIMEDIFF(endtime, starttime) < '03:00:00' # ignore suspiciously big
and TIMEDIFF(endtime, starttime) > '00:08:00' # ignore suspiciously short
) qry;


Number of games played: 7,744,262
Spoiler: show
SELECT count(1) FROM faf.game_stats;


Number of maps in vault: 7,988
Spoiler: show
select count(1) from faf.map;


Number of accounts: 244,854
Spoiler: show
SELECT count(1) FROM faf.login;


Number of ladder games in April: 13,193
Spoiler: show
select
count(1)
from game_stats where
gameMod = 6 #ladder
and endtime > '2020-04-01' and endtime < '2020-05-01' #april
order by endTime desc


Number of unique ladder players in April: 1,843
Spoiler: show
select
count(DISTINCT p.playerId)
from game_stats g
inner join game_player_stats p on p.gameId = g.id
where
gameMod = 6 #ladder
and endtime > '2020-04-01' and endtime < '2020-05-01' #april


New players per Month since 2018
Image
Spoiler: show
select
DATE_FORMAT (create_time, "%m %Y"),
count(1)
from login
where create_time > '2018-01-01'
group by DATE_FORMAT (create_time, "%m %Y")


New players per day since 2018
Image
Spoiler: show
select
DATE_FORMAT (create_time, "%Y-%m-%d"),
count(1)
from login
where create_time > '2018-01-01'
group by DATE_FORMAT (create_time, "%Y-%m-%d")
order by DATE_FORMAT (create_time, "%Y-%m-%d") ASC
nine2
Councillor - Promotion
 
Posts: 2416
Joined: 16 Apr 2013, 10:10
Has liked: 285 times
Been liked: 515 times
FAF User Name: Anihilnine

Re: FAF Stats from the database

Postby keyser » 06 Jun 2020, 12:19

you should have added that to the repvious topic : viewtopic.php?f=2&t=13449&start=120
so we keep all the stats in one place.
Zockyzock:
VoR is the clan of upcoming top players now
keyser
Councillor - Game
 
Posts: 1870
Joined: 17 May 2013, 14:27
Has liked: 424 times
Been liked: 540 times
FAF User Name: keyser


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest