r/DatabaseHelp • u/Wedue • Dec 16 '15
[Help] Time tracking database
Hello everyone! I need some help with my database.
I have a need to set up a table(s) to track how long players are playing a game. There are generally about 30,000 players online at any given time but total characters is in the 1.5 million range. I currently have a table that stores player names (PK) along with whether they are currently online or offline. I'd like to branch out and start figuring out daily play time for the last week of each character and each month as well. The times will need to be updated in 15 minute increments.
Any suggestions on how to set up a table or multiple tables to track time that a character is online every 15 minutes?
View all comments
Show parent comment
1
u/Wedue Dec 27 '15
Ah, sorry about the wait here. Haven't been working much lately because of the holidays but I'm using PostgreSQL currently.
It does not need to be tracked immediately, I could definitely just store the info and get it out at a later time
I would definitely like to add some things like gender, their "home city" in the game and a few others.