Page MenuHomePhabricator
Paste P17958

(An Untitled Masterwork)
ActivePublic

Authored by Tgr on Dec 1 2021, 10:20 PM.
Tags
None
Referenced Files
F34803875: raw-paste-data.txt
Dec 1 2021, 10:20 PM
Subscribers
None
wikiadmin@10.64.32.76(enwiki)> EXPLAIN SELECT 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,user_name,page_is_new,revactor_timestamp,(SELECT GROUP_CONCAT(ctd_name SEPARATOR ',') FROM `change_tag` JOIN `change_tag_def` ON ((ct_tag_id=ctd_id)) WHERE ct_rev_id=rev_id ) AS `ts_tags` 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` FORCE INDEX (actor_timestamp) 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)) LEFT JOIN `user` ON ((actor_rev_user.actor_user != 0) AND (user_id = actor_rev_user.actor_user)) JOIN `change_tag` ON ((ct_rev_id=rev_id)) WHERE ((temp_rev_user.revactor_actor = 82987)) AND ct_tag_id IN (11,6) ORDER BY revactor_timestamp DESC,revactor_rev DESC LIMIT 51;
+------+--------------------+---------------------+--------+-----------------------------------------------------------------+-----------------+---------+-----------------------------------------------+------+--------------------------+
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
+------+--------------------+---------------------+--------+-----------------------------------------------------------------+-----------------+---------+-----------------------------------------------+------+--------------------------+
| 1 | PRIMARY | actor_rev_user | const | PRIMARY | PRIMARY | 8 | const | 1 | |
| 1 | PRIMARY | user | const | PRIMARY | PRIMARY | 4 | const | 1 | |
| 1 | PRIMARY | temp_rev_user | ref | actor_timestamp | actor_timestamp | 8 | const | 622 | Using where; Using index |
| 1 | PRIMARY | change_tag | ref | ct_rev_tag_id,ct_tag_id_id | ct_rev_tag_id | 5 | enwiki.temp_rev_user.revactor_rev | 1 | Using where; Using index |
| 1 | PRIMARY | temp_rev_comment | eq_ref | PRIMARY,revcomment_rev | revcomment_rev | 4 | enwiki.temp_rev_user.revactor_rev | 1 | Using index |
| 1 | PRIMARY | comment_rev_comment | eq_ref | PRIMARY | PRIMARY | 8 | enwiki.temp_rev_comment.revcomment_comment_id | 1 | |
| 1 | PRIMARY | revision | eq_ref | PRIMARY,rev_page_id,rev_page_actor_timestamp,rev_page_timestamp | PRIMARY | 4 | enwiki.temp_rev_user.revactor_rev | 1 | |
| 1 | PRIMARY | page | eq_ref | PRIMARY | PRIMARY | 4 | enwiki.revision.rev_page | 1 | |
| 2 | DEPENDENT SUBQUERY | change_tag | ref | ct_rev_tag_id,ct_tag_id_id | ct_rev_tag_id | 5 | enwiki.revision.rev_id | 1 | Using index |
| 2 | DEPENDENT SUBQUERY | change_tag_def | eq_ref | PRIMARY | PRIMARY | 4 | enwiki.change_tag.ct_tag_id | 1 | |
+------+--------------------+---------------------+--------+-----------------------------------------------------------------+-----------------+---------+-----------------------------------------------+------+--------------------------+