This is the correct/canonical index name. For usages on mysql it will
map to the unprefixed version.
Bug: T154872
Change-Id: Ie2daf7b33428855ac59c85bf04a99a9bca7feba1
$this->addOption( 'LIMIT', $limit + 1 );
$this->addOption(
'USE INDEX',
- [ 'archive' => ( $mode == 'user' ? 'usertext_timestamp' : 'name_title_timestamp' ) ]
+ [ 'archive' => ( $mode == 'user' ? 'ar_usertext_timestamp' : 'name_title_timestamp' ) ]
);
if ( $mode == 'all' ) {
if ( $params['unique'] ) {
$condition = [];
$condition['ar_user_text'] = $this->target;
- $index = 'usertext_timestamp';
+ $index = 'ar_usertext_timestamp';
return [ $index, $condition ];
}