Delete old unnecessary ping records, store player count records in separate table

This commit is contained in:
mjezek
2022-03-13 12:47:45 +01:00
parent 9bbc16604a
commit 23b46a3dd5
4 changed files with 98 additions and 1 deletions

View File

@ -22,6 +22,10 @@ class App {
// Setup database instance
this.database.ensureIndexes(() => {
this.database.loadGraphPoints(config.graphDuration, () => {
if (config.deleteOldPings) {
this.database.initOldPingsDeleter()
}
this.database.loadRecords(callback)
})
})