Skip to content

Commit fb0d34b

Browse files
chaselmannChristoph Haselmann
andauthored
feat(postgres-driver): CUBEJS_DB_MAX_POOL env variable (#528) Thanks to @chaselmann!
Co-authored-by: Christoph Haselmann <christoph.haselmann@rise-world.com>
1 parent 035d89e commit fb0d34b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cubejs-postgres-driver/driver/PostgresDriver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class PostgresDriver extends BaseDriver {
2525
super();
2626
this.config = config || {};
2727
this.pool = new Pool({
28-
max: 8,
28+
max: process.env.CUBEJS_DB_MAX_POOL && parseInt(process.env.CUBEJS_DB_MAX_POOL, 10) || 8,
2929
idleTimeoutMillis: 30000,
3030
host: process.env.CUBEJS_DB_HOST,
3131
database: process.env.CUBEJS_DB_NAME,

0 commit comments

Comments
 (0)