Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
Rillke
.
Potential autopatrolled candidates with a smaller memory fingerprint
Toggle Highlighting
SQL
USE `commonswiki_p`; SELECT `user_name` FROM `user` /* there are very few users with > 1000 edits compared to the overall number of users */ WHERE `user`.`user_editcount` > 1000 /* DB should be prepared for joining these two (MediaWiki does this all the time); */ /* user_groups is supposedly a relatively small table */ AND `user`.`user_id` NOT IN ( SELECT `ug_user` FROM `user_groups` ) /* do not include brand new users who just experimented with Cat-A-Lot */ AND (DATEDIFF( NOW(), `user`.`user_registration` ) > 30 OR `user`.`user_registration` IS NULL) /* and of course these users should not be blocked currently */ AND `user`.`user_id` NOT IN ( SELECT `ipb_user` FROM `ipblocks` ) /* and have an edit or other contribution within the last 30 days */ /* this makes the query notably slower but should be almost constant */ /* even if we get a lot new users or operate this wiki another 10 years */ /* while user_daily_contribs will grow over time and might consume even more */ /* resources in the future */ AND `user`.`user_id` IN ( SELECT `rc_user` FROM `recentchanges_userindex` ) ORDER BY `user_editcount` DESC;
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...