feat(core): Make postgres pool-size configurable (no-changelog) (#7772)
When we upgrade typeorm in #5151, we switched from no pooling to a default pool-size of 10. This somehow significantly deteriorates the performance of queries when the application is under load.
This commit is contained in:
committed by
GitHub
parent
3459eb6c2f
commit
9b4856e7de
@@ -61,6 +61,7 @@ export const getPostgresConnectionOptions = (): PostgresConnectionOptions => ({
|
||||
type: 'postgres',
|
||||
...getDBConnectionOptions('postgresdb'),
|
||||
schema: config.getEnv('database.postgresdb.schema'),
|
||||
poolSize: config.getEnv('database.postgresdb.poolSize'),
|
||||
migrations: postgresMigrations,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user