So here's yet another MySQL based question. I want to store players total online time in a MySQL database, and I've thought of 2 ways of doing this, but I need to know which is more efficient/effective, or maybe if there's another way. Option 1: When a player logs in, create a hashmap for that player, and every x amount of time (most likely in seconds), add 1 to their hashmap. When they logout, write that hashmap amount to the database. Option 2: When a player logs in, store the time via System.currentTimeMillis() to that player. When they logout, get the difference again using System.currentTimeMillis() and write that to the database. Does anyone have any other ideas?