diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-10 23:47:47 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-10 23:47:47 +0200 |
| commit | 7e4707a59f474e926287a00bb258ef51e492d0ae (patch) | |
| tree | 952b04a0733e9196402d542eacc85869d467acd9 /worker.js | |
| parent | 867344071ebd37ad68dceefff055a514f4983d09 (diff) | |
| download | shrinker-7e4707a59f474e926287a00bb258ef51e492d0ae.tar.gz shrinker-7e4707a59f474e926287a00bb258ef51e492d0ae.zip | |
decrease batch size
Diffstat (limited to 'worker.js')
| -rw-r--r-- | worker.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -11,7 +11,7 @@ var amqp = require("amqplib"), var RABBITMQ_URI = process.env.RABBITMQ_URI, DATABASE_URI = process.env.DATABASE_URI, // matches + players (2 pages for 100 players) - BATCHSIZE = parseInt(process.env.BATCHSIZE) || 10 * 2 * 50 * (1 + 5), + BATCHSIZE = parseInt(process.env.BATCHSIZE) || 4 * 50 * (1 + 5), IDLE_TIMEOUT = parseFloat(process.env.IDLE_TIMEOUT) || 1000, // ms PREMIUM_FEATURES = process.env.PREMIUM_FEATURES || false; // calculate on demand for non-premium users |
