Closed eatnumber1 closed 13 years ago
You could always backhaul the high scores table to a SQL db in a cronjob... unless you want really live death updates. In which case, bleh.
It's all about the super live stuff.
I'd like to be able to register a database change notification with the database so that things like tweets can go out the moment you die.
This will be much easier to implement once Will finishes the JSON save stuffs, as JSON-->Database is a much saner, well-used environment than binary nethack data --> Database
I never meant to write binary data to the db. It would only write statistics to the database.
Fixed by f77b4f263dabe3618722e0cba313286f144dbe8c. Games are now dumped to a mysql database. I've also written a script which has imported all previous games.
It would be extremely useful if Nethack dumped death information to a sqlite database. The performance of the high scores script can (probably) be significantly improved if reading from a sqlite database.