Set batch size to 1000 in updateRestrictions
authorReedy <reedy@wikimedia.org>
Wed, 19 Jul 2017 17:35:02 +0000 (18:35 +0100)
committerReedy <reedy@wikimedia.org>
Wed, 19 Jul 2017 17:35:02 +0000 (18:35 +0100)
As far as can be seen on enwiki, very few rows to update

Change-Id: Idf8dee951a5240c4ebaa73fc02c1248a6737b3f8

maintenance/updateRestrictions.php

index 02b4405..2f3fc36 100644 (file)
@@ -36,7 +36,7 @@ class UpdateRestrictions extends Maintenance {
        public function __construct() {
                parent::__construct();
                $this->addDescription( 'Updates page_restrictions table from old page_restriction column' );
        public function __construct() {
                parent::__construct();
                $this->addDescription( 'Updates page_restrictions table from old page_restriction column' );
-               $this->setBatchSize( 100 );
+               $this->setBatchSize( 1000 );
        }
 
        public function execute() {
        }
 
        public function execute() {