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
Sean.hoyland
.
Toggle Highlighting
SQL
set max_statement_time = 300; select actor_user, actor_name, r1.rev_timestamp, r1.rev_actor, r1.rev_deleted, r2.rev_deleted, r1.rev_id, r1.rev_parent_id, r1.rev_len as rev_len_new, r2.rev_len as rev_len_old, ifnull(r1.rev_len,0) - ifnull(r2.rev_len,0) as size_change_bytes, # see https://www.mediawiki.org/wiki/Manual:Revision_table r1.rev_page, page_namespace, case when page_namespace = 0 then '(Main/Article)' when page_namespace = 1 then 'Talk' when page_namespace = 2 then 'User' when page_namespace = 3 then 'User talk' when page_namespace = 4 then 'Wikipedia' when page_namespace = 5 then 'Wikipedia talk' when page_namespace = 6 then 'File' when page_namespace = 7 then 'File talk' when page_namespace = 8 then 'MediaWiki' when page_namespace = 9 then 'MediaWiki talk' when page_namespace = 10 then 'Template' when page_namespace = 11 then 'Template talk' when page_namespace = 12 then 'Help' when page_namespace = 13 then 'Help talk' when page_namespace = 14 then 'Category' when page_namespace = 15 then 'Category talk' when page_namespace = 100 then 'Portal' when page_namespace = 101 then 'Portal talk' when page_namespace = 118 then 'Draft' when page_namespace = 119 then 'Draft talk' when page_namespace = 710 then 'TimedText' when page_namespace = 711 then 'TimedText talk' when page_namespace = 828 then 'Module' when page_namespace = 829 then 'Module talk' else null end, page_id, page_title, r1.rev_comment_id, comment_text from actor join revision_userindex as r1 on r1.rev_actor = actor_id # use revision_userindex view rather than revision table. much faster join revision_userindex as r2 on r2.rev_id = r1.rev_parent_id join page on page_id = r1.rev_page join comment_revision on comment_id = r1.rev_comment_id where actor_name = 'General Blorp' #and r1.rev_timestamp >= '20230101' limit 600; #select * from revision_userindex limit 50 #select * from revision limit 50 #select * from comment_revision limit 10 # user_id = actor_user = 45113768 # rev_actor = actor_id = 222965530 # actor_name = user_name = 'General Blorp' # rev_comment_id = 19459854
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...