From e61e8f405895de1d008b590dc0ad0d89c424e4d4 Mon Sep 17 00:00:00 2001 From: Rasmus Porsager Date: Mon, 6 Apr 2020 16:10:15 +0200 Subject: [PATCH] Default to 10 connections instead of number of cpus --- lib/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index ad69c4eb..356d5124 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,4 +1,3 @@ -const os = require('os') const fs = require('fs') const Url = require('url') const Connection = require('./connection.js') @@ -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,