From 87d1cbc074bd97d62ddddc282ec1e1cf38daea4c Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 6 May 2015 18:24:34 -0700 Subject: [PATCH] Reduce chunk size in doBatchPush for redis Change-Id: I2c66b6b69535ce2089c1fab2df962f4ebca9f62f --- includes/jobqueue/JobQueueRedis.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/jobqueue/JobQueueRedis.php b/includes/jobqueue/JobQueueRedis.php index c0d3bec736..f1de76cbb8 100644 --- a/includes/jobqueue/JobQueueRedis.php +++ b/includes/jobqueue/JobQueueRedis.php @@ -205,7 +205,7 @@ class JobQueueRedis extends JobQueue { if ( $flags & self::QOS_ATOMIC ) { $batches = array( $items ); // all or nothing } else { - $batches = array_chunk( $items, 500 ); // avoid tying up the server + $batches = array_chunk( $items, 100 ); // avoid tying up the server } $failed = 0; $pushed = 0; -- 2.20.1