Merge "Query for array of join with ActorMigration::getJoin() to improve performance"
This commit is contained in:
commit
20f33b07f3
1 changed files with 2 additions and 6 deletions
|
@ -3,8 +3,6 @@
|
||||||
* \brief Contains code for the ContributionScores Class (extends SpecialPage).
|
* \brief Contains code for the ContributionScores Class (extends SpecialPage).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use MediaWiki\MediaWikiServices;
|
|
||||||
|
|
||||||
/// Special page class for the Contribution Scores extension
|
/// Special page class for the Contribution Scores extension
|
||||||
/**
|
/**
|
||||||
* Special page that generates a list of wiki contributors based
|
* Special page that generates a list of wiki contributors based
|
||||||
|
@ -99,10 +97,8 @@ class ContributionScores extends IncludableSpecialPage {
|
||||||
|
|
||||||
$dbr = wfGetDB( DB_REPLICA );
|
$dbr = wfGetDB( DB_REPLICA );
|
||||||
|
|
||||||
$store = MediaWikiServices::getInstance()
|
$revQuery = ActorMigration::newMigration()->getJoin( 'rev_user' );
|
||||||
->getRevisionStoreFactory()
|
$revQuery['tables'] = array_merge( [ 'revision' ], $revQuery['tables'] );
|
||||||
->getRevisionStore();
|
|
||||||
$revQuery = $store->getQueryInfo();
|
|
||||||
|
|
||||||
$revUser = $revQuery['fields']['rev_user'];
|
$revUser = $revQuery['fields']['rev_user'];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue