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

This commit is contained in:
hanhh committed 2021-08-29 00:52:21 +08:00
1 parent 7eed47cd8e
commit 3a998a37f0
3 files changed
+17 -18

No files matched your search

+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 {