Try lazy pool initialization

This commit is contained in:
Alex Gleason 2024-07-01 08:44:01 +01:00
parent 96fe171d65
commit d062f6bbb6
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -12,7 +12,7 @@ export class DittoPostgres {
static getPool(): Pool {
if (!this.pool) {
this.pool = new Pool(Conf.databaseUrl, Conf.pg.poolSize);
this.pool = new Pool(Conf.databaseUrl, Conf.pg.poolSize, true);
}
return this.pool;
}