summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-09-09 12:38:33 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-09-09 12:38:33 +0200
commitd95f7710546ec95c80b963d3ead49e2c8ced983a (patch)
tree5e10a76b1f6dcc7b8fa2faeac40e109acfacb149
parent4005fab041e6b72aface2ef4a964d3f2b1db3d0d (diff)
downloadshrinker-d95f7710546ec95c80b963d3ead49e2c8ced983a.tar.gz
shrinker-d95f7710546ec95c80b963d3ead49e2c8ced983a.zip
tweak default batch size
-rw-r--r--worker.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/worker.js b/worker.js
index a4718dd..338a44d 100644
--- a/worker.js
+++ b/worker.js
@@ -17,7 +17,7 @@ const RABBITMQ_URI = process.env.RABBITMQ_URI,
QUEUE = process.env.QUEUE || "shrink",
LOGGLY_TOKEN = process.env.LOGGLY_TOKEN,
// matches + players, 5 players with 50 matches as default
- BATCHSIZE = parseInt(process.env.BATCHSIZE) || 1, //|| 5 * (50 + 1),
+ BATCHSIZE = parseInt(process.env.BATCHSIZE) || 20,
// maximum number of elements to be inserted in one statement
CHUNKSIZE = parseInt(process.env.CHUNKSIZE) || 100,
MAXCONNS = parseInt(process.env.MAXCONNS) || 10, // how many concurrent actions