mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
increase mmap_size
This commit is contained in:
@@ -25,8 +25,8 @@ export class AppService implements OnModuleInit {
|
|||||||
await this.dataSource.query(`PRAGMA cache_size = -500000;`);
|
await this.dataSource.query(`PRAGMA cache_size = -500000;`);
|
||||||
//Normal is still completely corruption safe in WAL mode, and means only WAL checkpoints have to wait for FSYNC.
|
//Normal is still completely corruption safe in WAL mode, and means only WAL checkpoints have to wait for FSYNC.
|
||||||
await this.dataSource.query(`PRAGMA synchronous = off;`);
|
await this.dataSource.query(`PRAGMA synchronous = off;`);
|
||||||
//3Gb
|
//6Gb
|
||||||
await this.dataSource.query(`PRAGMA mmap_size = 3000000000;`);
|
await this.dataSource.query(`PRAGMA mmap_size = 6000000000;`);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Interval(1000 * 60 * 60)
|
@Interval(1000 * 60 * 60)
|
||||||
|
|||||||
Reference in New Issue
Block a user