diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-09-09 12:38:33 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-09-09 12:38:33 +0200 |
| commit | d95f7710546ec95c80b963d3ead49e2c8ced983a (patch) | |
| tree | 5e10a76b1f6dcc7b8fa2faeac40e109acfacb149 | |
| parent | 4005fab041e6b72aface2ef4a964d3f2b1db3d0d (diff) | |
| download | shrinker-d95f7710546ec95c80b963d3ead49e2c8ced983a.tar.gz shrinker-d95f7710546ec95c80b963d3ead49e2c8ced983a.zip | |
tweak default batch size
| -rw-r--r-- | worker.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
