Fix RevisionDeleteUser rev_actor query for MySQL
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 28 Nov 2018 18:09:28 +0000 (13:09 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Thu, 29 Nov 2018 16:24:57 +0000 (11:24 -0500)
commit25f02d91dc843c78ad4b77b2fba7b46e1f4ce1eb
treed0b7e437402363491571ab792356d57e9fde286f
parent6e58bfb43a161235444d10d8cf42e8f0eaee4efe
Fix RevisionDeleteUser rev_actor query for MySQL

MySQL uses an extremely bad plan for the update with subquery here.
For the time being let's split out the subquery.

This'll break if the user has too many revision rows, but on the other
hand all the existing queries here will probably break in the same way
so let's leave that for later.

Bug: T210628
Change-Id: Ia3eb41b43b96c506349279e19743c41530969636
includes/revisiondelete/RevisionDeleteUser.php