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 17 '15
That's very helpful, thank you! I'm currently using PostgreSQL so I'll just have to set it up this weekend/over the holiday. I think I'm going to try to set it up as your first example with 15 minutes incrementing
Thank you again, I appreciate you taking the time to write that out!