aboutsummaryrefslogtreecommitdiffstats
path: root/includes/changes
diff options
context:
space:
mode:
authorAmir Sarabadani <ladsgroup@gmail.com>2022-06-30 23:38:30 +0200
committerAmir Sarabadani <ladsgroup@gmail.com>2022-06-30 23:38:30 +0200
commitf24eb9457118f7ec177bfa5d60560eebe6d17afb (patch)
tree1896e2fc0569f43809ed09619b4196cd586d0823 /includes/changes
parent82731997a1722880263560c6dcba92a65e65a4ff (diff)
downloadmediawikicore-f24eb9457118f7ec177bfa5d60560eebe6d17afb.tar.gz
mediawikicore-f24eb9457118f7ec177bfa5d60560eebe6d17afb.zip
RecentChange: Make join to comment table also straight
The optimizer is refusing to pick the right join order Bug: T311360 Change-Id: I742201b45975a5edcac5d4634d70d50ee851f0ac
Diffstat (limited to 'includes/changes')
-rw-r--r--includes/changes/RecentChange.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/changes/RecentChange.php b/includes/changes/RecentChange.php
index d10e3e47f1b3..8aa4e6c51116 100644
--- a/includes/changes/RecentChange.php
+++ b/includes/changes/RecentChange.php
@@ -259,6 +259,8 @@ class RecentChange implements Taggable {
*/
public static function getQueryInfo() {
$commentQuery = CommentStore::getStore()->getJoin( 'rc_comment' );
+ // Optimizer sometimes refuses to pick up the correct join order (T311360)
+ $commentQuery['joins']['comment_rc_comment'][0] = 'STRAIGHT_JOIN';
return [
'tables' => [
'recentchanges',