Skip to content

Commit

Permalink
feat(postgres-driver): CUBEJS_DB_MAX_POOL env variable (#528) Thank…
Browse files Browse the repository at this point in the history
…s to @chaselmann!

Co-authored-by: Christoph Haselmann <christoph.haselmann@rise-world.com>
  • Loading branch information
chaselmann and Christoph Haselmann authored Mar 22, 2020
1 parent 035d89e commit fb0d34b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cubejs-postgres-driver/driver/PostgresDriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class PostgresDriver extends BaseDriver {
super();
this.config = config || {};
this.pool = new Pool({
max: 8,
max: process.env.CUBEJS_DB_MAX_POOL && parseInt(process.env.CUBEJS_DB_MAX_POOL, 10) || 8,
idleTimeoutMillis: 30000,
host: process.env.CUBEJS_DB_HOST,
database: process.env.CUBEJS_DB_NAME,
Expand Down

0 comments on commit fb0d34b

Please sign in to comment.