fix: run compaction every interval (#834)

This commit is contained in:
Liu Xiaoyi
2024-12-18 02:47:40 +08:00
committed by GitHub
parent 059c3b4ebb
commit 99a1b6bbd0
4 changed files with 8 additions and 0 deletions
+1
View File
@@ -31,6 +31,7 @@ class Users {
});
db.ensureIndex({fieldName: 'username', unique: true});
db.setAutocompactionInterval(config.dbCleanInterval);
return db;
})();