Performance crusade in SpecialListredirects:
authorRoan Kattouw <catrope@users.mediawiki.org>
Wed, 22 Dec 2010 15:58:15 +0000 (15:58 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Wed, 22 Dec 2010 15:58:15 +0000 (15:58 +0000)
commitb29e8ea02528b29f3ae66f405c01338684e8efee
tree87565e986b3289a1366ccf90d2379131a0e54ae4
parent3ba0d70b061b78aeb7ce48f9b156e3345a216fe3
Performance crusade in SpecialListredirects:
* Use the rd_* fields to build redirect objects directly rather than running additional queries to grab them
** If the rd_* fields are not available (i.e. when running from cache), use Article::getRedirectTarget() rather than grabbing the revision text
* Preload the existence status of the redirects and their targets in a LinkBatch so Linker::link() won't query them one at a time
includes/specials/SpecialListredirects.php