We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d7bb7a commit 4bb23e6Copy full SHA for 4bb23e6
src/database/client.ts
@@ -12,8 +12,8 @@ const createDbConfig = (): Knex.Config => ({
12
database: process.env.DB_NAME,
13
},
14
pool: {
15
- min: 2,
16
- max: 3,
+ min: process.env.DB_MIN_POOL_SIZE ? Number(process.env.DB_MIN_POOL_SIZE) : 2,
+ max: process.env.DB_MAX_POOL_SIZE ? Number(process.env.DB_MAX_POOL_SIZE) : 3,
17
idleTimeoutMillis: 10000,
18
19
acquireConnectionTimeout: 2000,
0 commit comments