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() {
$blockEnd = $start + $this->mBatchSize - 1;
$encodedExpiry = 'infinity';
while ( $blockEnd <= $end ) {
- $this->output( "...doing page_id from $blockStart to $blockEnd\n" );
+ $this->output( "...doing page_id from $blockStart to $blockEnd out of $end\n" );
$cond = "page_id BETWEEN $blockStart AND $blockEnd AND page_restrictions !=''";
$res = $db->select(
'page',