增加nedb数据自定比对,测试对db文件不断增大的影响

This commit is contained in:
hanhh
2021-08-29 00:52:21 +08:00
parent 7eed47cd8e
commit 3a998a37f0
3 changed files with 17 additions and 18 deletions
+1
View File
@@ -23,6 +23,7 @@ export default class CronService {
this.cronDb.loadDatabase((err) => {
if (err) throw err;
});
this.cronDb.persistence.setAutocompactionInterval(30000);
}
public getDb(): DataStore {