Adjust Shortpages query with multiple content namespaces
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 16 Jun 2017 18:57:42 +0000 (14:57 -0400)
committerAnomie <bjorsch@wikimedia.org>
Fri, 16 Jun 2017 19:52:16 +0000 (19:52 +0000)
commit3a10ab5965b965f7512b652d0df99afffc510e46
tree228d0e6bc25c85b080ff1f9c63c5f2699c33cbe1
parenta0ad0569bd41e6339e4880cbd16389258beb17a5
Adjust Shortpages query with multiple content namespaces

MariaDB can't effectively use the page_redirect_namespace_len index when
there are multiple namespaces. Instead, let's query each namespace
individually and UNION them together.

Bug: T168010
Change-Id: I632fbc599e06a3c2faabd55f5d87339f968f58bb
includes/specials/SpecialShortpages.php