I don't know if this query has been reported before, I have not been able to find it on phab, the most similar is: T221511
This query has shown up on arwiki from what I can see in Tendril in the last 120 hours.
root@db1136.eqiad.wmnet[arwiki]> explain SELECT /* ApiQueryUserContribs::execute */ rev_id, rev_page, rev_timestamp, rev_minor_edit, rev_deleted, rev_len, rev_parent_id, rev_sha1, comment_rev_comment.comment_text AS `rev_comment_text`, comment_rev_comment.comment_data AS `rev_comment_data`, comment_rev_comment.comment_id AS `rev_comment_cid`, actor_rev_user.actor_user AS `rev_user`, actor_rev_user.actor_name AS `rev_user_text`, temp_rev_user.revactor_actor AS `rev_actor`, page_namespace, page_title, page_id, page_latest, page_is_redirect, page_len FROM `revision` JOIN `revision_comment_temp` `temp_rev_comment` ON ((temp_rev_comment.revcomment_rev = rev_id)) JOIN `comment` `comment_rev_comment` ON ((comment_rev_comment.comment_id = temp_rev_comment.revcomment_comment_id)) JOIN `revision_actor_temp` `temp_rev_user` ON ((temp_rev_user.revactor_rev = rev_id)) JOIN `actor` `actor_rev_user` ON ((actor_rev_user.actor_id = temp_rev_user.revactor_actor)) JOIN `page` ON ((page_id = rev_page)) WHERE ((temp_rev_user.revactor_actor = 8)) AND ((rev_deleted & 4) != 4) ORDER BY revactor_timestamp, revactor_rev LIMIT 2 /* 57a5d1732dcbb90ea98302632482079e db1079 arwiki 54s */; +------+-------------+---------------------+--------+--------------------------------------------------------+---------------------+---------+-----------------------------------------------+---------+---------------------------------+ | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | +------+-------------+---------------------+--------+--------------------------------------------------------+---------------------+---------+-----------------------------------------------+---------+---------------------------------+ | 1 | SIMPLE | actor_rev_user | const | PRIMARY | PRIMARY | 8 | const | 1 | Using temporary; Using filesort | | 1 | SIMPLE | page | ALL | PRIMARY | NULL | NULL | NULL | 5981446 | | | 1 | SIMPLE | revision | ref | PRIMARY,page_timestamp,page_user_timestamp,rev_page_id | page_user_timestamp | 4 | arwiki.page.page_id | 2 | Using where | | 1 | SIMPLE | temp_rev_comment | ref | PRIMARY,revcomment_rev | PRIMARY | 4 | arwiki.revision.rev_id | 1 | Using index | | 1 | SIMPLE | comment_rev_comment | eq_ref | PRIMARY | PRIMARY | 8 | arwiki.temp_rev_comment.revcomment_comment_id | 1 | | | 1 | SIMPLE | temp_rev_user | eq_ref | PRIMARY,revactor_rev,actor_timestamp | PRIMARY | 12 | arwiki.revision.rev_id,const | 1 | | +------+-------------+---------------------+--------+--------------------------------------------------------+---------------------+---------+-----------------------------------------------+---------+---------------------------------+ 6 rows in set (0.00 sec)
And the real explain is the same:
root@db1136.eqiad.wmnet[(none)]> show explain for 2085709106; +------+-------------+---------------------+--------+--------------------------------------------------------+---------------------+---------+-----------------------------------------------+---------+---------------------------------+ | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | +------+-------------+---------------------+--------+--------------------------------------------------------+---------------------+---------+-----------------------------------------------+---------+---------------------------------+ | 1 | SIMPLE | actor_rev_user | const | PRIMARY | PRIMARY | 8 | const | 1 | Using temporary; Using filesort | | 1 | SIMPLE | page | ALL | PRIMARY | NULL | NULL | NULL | 5981447 | | | 1 | SIMPLE | revision | ref | PRIMARY,page_timestamp,page_user_timestamp,rev_page_id | page_user_timestamp | 4 | arwiki.page.page_id | 2 | Using where | | 1 | SIMPLE | temp_rev_comment | ref | PRIMARY,revcomment_rev | PRIMARY | 4 | arwiki.revision.rev_id | 1 | Using index | | 1 | SIMPLE | comment_rev_comment | eq_ref | PRIMARY | PRIMARY | 8 | arwiki.temp_rev_comment.revcomment_comment_id | 1 | | | 1 | SIMPLE | temp_rev_user | eq_ref | PRIMARY,revactor_rev,actor_timestamp | PRIMARY | 12 | arwiki.revision.rev_id,const | 1 | | +------+-------------+---------------------+--------+--------------------------------------------------------+---------------------+---------+-----------------------------------------------+---------+---------------------------------+ 6 rows in set, 1 warning (0.00 sec)
I killed the query after it has been run for more than 5 minutes.