hidemyself/hidebyothers: Use rc_user_text since there is an index
authorMatthew Flaschen <mflaschen@wikimedia.org>
Mon, 27 Mar 2017 21:06:01 +0000 (17:06 -0400)
committerRoan Kattouw <roan.kattouw@gmail.com>
Tue, 28 Mar 2017 19:40:56 +0000 (15:40 -0400)
commite0c50803239d558dfdc9013aabc7e74c44b6e74e
tree58fe6228c83258d59def3f886c5676b45f059461
parent787fd04549592c05667b0c733cd963333d6c0920
hidemyself/hidebyothers: Use rc_user_text since there is an index

hidebyothers was extremely slow (on large data sets) due to the
lack of an index on rc_user.  To fix this, changed to use rc_user_text.

hidemyself seems to be fine (assuming normal usage patterns), but
to avoid edge cases and ensure full coverage, it's been changed as
well.

I'll inquire about adding an index for this.

Bug: T161557
Change-Id: I61efe11de12e8ab6c01e8d913cdeda471132a6ee
includes/specialpage/ChangesListSpecialPage.php
tests/phpunit/includes/specialpage/ChangesListSpecialPageTest.php