Caused by rEGRE96cd0dd1c8b9: UserImpact: Add created articles count
Currently this is one of the slowest queries in production that is happening quite frequently: https://logstash.wikimedia.org/goto/6ba380f339057c3cc485f8357295cc65
In some cases 30s long queries:
https://logstash.wikimedia.org/app/discover#/doc/logstash-*/logstash-mediawiki-1-7.0.0-1-2025.05.20?id=bXb67ZYB-jfKnJis4S16
They are stuff like:
SELECT COUNT(*) AS `rowcount` FROM (SELECT 1 FROM `page` JOIN `revision` ON ((page.page_id = rev_page)) WHERE page.page_namespace = 0 AND rev_actor = 1596 AND rev_parent_id = 0 LIMIT 1000 ) `tmp_count`
Please don't run this query if the user has more than x edits (1000? 10,000?) by checking user_editcount.