remove VACUUM

This commit is contained in:
Ben
2023-10-08 16:22:19 -04:00
parent b9c3c67531
commit da60bb2876
+3 -3
View File
@@ -17,9 +17,9 @@ export class AppService implements OnModuleInit {
} }
async onModuleInit() { async onModuleInit() {
if (process.env.NODE_APP_INSTANCE == '0') { // if (process.env.NODE_APP_INSTANCE == '0') {
await this.dataSource.query(`VACUUM;`); // await this.dataSource.query(`VACUUM;`);
} // }
//https://phiresky.github.io/blog/2020/sqlite-performance-tuning/ //https://phiresky.github.io/blog/2020/sqlite-performance-tuning/
//500 MB DB cache //500 MB DB cache
await this.dataSource.query(`PRAGMA cache_size = -500000;`); await this.dataSource.query(`PRAGMA cache_size = -500000;`);