From d95f7710546ec95c80b963d3ead49e2c8ced983a Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 9 Sep 2017 12:38:33 +0200 Subject: tweak default batch size --- worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3.1