add connection pool settings

This commit is contained in:
Dieter Stinglhamber 2022-09-08 08:49:21 +02:00
parent 2ae198e690
commit 10aaea4d39
2 changed files with 4 additions and 0 deletions

View File

@ -24,6 +24,7 @@ module.exports = ({ env }) => {
),
},
},
pool: { min: env.int('DATABASE_POOL_MIN', 2), max: env.int('DATABASE_POOL_MAX', 10) },
},
postgres: {
connection: {
@ -46,6 +47,7 @@ module.exports = ({ env }) => {
},
schema: env('DATABASE_SCHEMA', 'public'),
},
pool: { min: env.int('DATABASE_POOL_MIN', 2), max: env.int('DATABASE_POOL_MAX', 10) },
},
sqlite: {
connection: {

View File

@ -24,6 +24,7 @@ export default = ({ env }) => {
),
},
},
pool: { min: env.int('DATABASE_POOL_MIN', 2), max: env.int('DATABASE_POOL_MAX', 10) },
},
postgres: {
connection: {
@ -46,6 +47,7 @@ export default = ({ env }) => {
},
schema: env('DATABASE_SCHEMA', 'public'),
},
pool: { min: env.int('DATABASE_POOL_MIN', 2), max: env.int('DATABASE_POOL_MAX', 10) },
},
sqlite: {
connection: {