Skip to content

Commit

Permalink
Default to 10 connections instead of number of cpus
Browse files Browse the repository at this point in the history
  • Loading branch information
porsager committed Apr 6, 2020
1 parent a519e18 commit e61e8f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const os = require('os')
const fs = require('fs')
const Url = require('url')
const Connection = require('./connection.js')
Expand Down Expand Up @@ -492,7 +491,7 @@ function parseOptions(a, b) {
database : o.database || o.db || (url.pathname || '').slice(1) || env.PGDATABASE || 'postgres',
user : o.user || o.username || auth[0] || env.PGUSERNAME || env.PGUSER || osUsername(),
pass : o.pass || o.password || auth[1] || env.PGPASSWORD || '',
max : o.max || url.query.max || Math.max(1, os.cpus().length),
max : o.max || url.query.max || 10,
types : o.types || {},
ssl : o.ssl || url.ssl || false,
timeout : o.timeout,
Expand Down

0 comments on commit e61e8f4

Please sign in to comment.