增加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
@@ -13,6 +13,7 @@ export default class OpenService {
this.appDb.loadDatabase((err) => {
if (err) throw err;
});
this.appDb.persistence.setAutocompactionInterval(30000);
}
public getDb(): DataStore {