regression from a combination of
https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/380669/
and
https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/459885/
We have to do a straight join for all stubs, since they all
now order revisions by rev_id after deployment of the second
patchset above.
Bug: T207628
Change-Id: I4d2a311c14c66d4813eb9fc3c587fa3ddb958454
const TEXT = 0;
const STUB = 1;
- const BATCH_SIZE = 1000;
+ const BATCH_SIZE = 50000;
/** @var int */
public $text;
} elseif ( $this->history & self::FULL ) {
# Full history dumps...
# query optimization for history stub dumps
- if ( $this->text == self::STUB && $orderRevs ) {
+ if ( $this->text == self::STUB ) {
$tables = $revQuery['tables'];
+ $opts[] = 'STRAIGHT_JOIN';
$opts['USE INDEX']['revision'] = 'rev_page_id';
unset( $join['revision'] );
$join['page'] = [ 'INNER JOIN', 'rev_page=page_id' ];