mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-03-29 19:22:43 +01:00
remove VACUUM
This commit is contained in:
parent
b9c3c67531
commit
da60bb2876
@ -17,9 +17,9 @@ export class AppService implements OnModuleInit {
|
||||
}
|
||||
|
||||
async onModuleInit() {
|
||||
if (process.env.NODE_APP_INSTANCE == '0') {
|
||||
await this.dataSource.query(`VACUUM;`);
|
||||
}
|
||||
// if (process.env.NODE_APP_INSTANCE == '0') {
|
||||
// await this.dataSource.query(`VACUUM;`);
|
||||
// }
|
||||
//https://phiresky.github.io/blog/2020/sqlite-performance-tuning/
|
||||
//500 MB DB cache
|
||||
await this.dataSource.query(`PRAGMA cache_size = -500000;`);
|
||||
|
Loading…
x
Reference in New Issue
Block a user