dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0be61ee
)
enforce join order for whatlinkshere queries - avoid filesorts at a cost of scanning...
author
Domas Mituzas
<midom@users.mediawiki.org>
Tue, 8 May 2007 15:14:33 +0000
(15:14 +0000)
committer
Domas Mituzas
<midom@users.mediawiki.org>
Tue, 8 May 2007 15:14:33 +0000
(15:14 +0000)
includes/SpecialWhatlinkshere.php
patch
|
blob
|
history
diff --git
a/includes/SpecialWhatlinkshere.php
b/includes/SpecialWhatlinkshere.php
index
d84326a
..
a11e9d4
100644
(file)
--- a/
includes/SpecialWhatlinkshere.php
+++ b/
includes/SpecialWhatlinkshere.php
@@
-112,6
+112,11
@@
class WhatLinksHerePage {
// Read an extra row as an at-end check
$queryLimit = $limit + 1;
+
+ // enforce join order, sometimes namespace selector may
+ // trigger filesorts which are far less efficient than scanning many entries
+ $options[] = 'STRAIGHT_JOIN';
+
$options['LIMIT'] = $queryLimit;
$fields = array( 'page_id', 'page_namespace', 'page_title', 'page_is_redirect' );