Query service

From Toolserver wiki
Jump to: navigation, search

Often, people on Wikimedia projects have a question they can't get an answer to from MediaWiki, but which can be easily answered by asking the database directly. The query service aims to help Wikimedians get the answers they need. It's simple:

  • If you want someone to run a SQL query for you, please file a request on jira:DBQ
    • Note: Filing a request on JIRA requires creating an account and logging in.
    • After doing so, go to https://jira.ts.wikimedia.org/browse/DBQ and select "Create new issue"; then select "Next>>"
    • Please be as detailed as possible about what data you need, in what order, in what format
    • If you can, provide the SQL query
  • If you are a Toolserver user and are willing to run a query every now and then, please look at jira:DBQ and take whatever task you like.
    • Before running the query, make sure it's feasible. EXPLAIN the query first.
    • Post the result as a plain file on the Toolserver, or to a wiki page, if that was requested
    • Please record the exact query you used for future reference, ideally in a comment to the JIRA ticket.

If you are interested in handling requests for database queries regularly, visit Special:Userrights and add yourself to the query-service group. You will then be notified of any new requests for queries filed in JIRA. You can also create a JIRA filter (using 'find issues'), to find new queries in this project, and mail them to you periodically, or produce an RSS feed.

The person who runs the database query will add it to the wiki (below) if necessary.

Contents

[edit] Currently active queries

Only the person running the query should add it to this list. If you want to request a new query, file a request on JIRA.

[edit] Begriffsklärungsseiten

Description Top linked disambiguation pages on the German Wikipedia and the Dutch Wikipedia.
Assignee Bryan
JIRA bug DBQ-1
Source dewiki_dab.sh / nlwiki_dab.sh
Results Wikipedia:WikiProjekt Begriffsklärungsseiten/Top-BKS / Wikipedia:Links naar doorverwijspagina's/data
Approximate run time 40 minutes
Interval weekly

[edit] WantedTemplates cswiki

Description wanted templates on cswiki (usage of non-existing templates).
Assignee Duesentrieb
JIRA bug n/a
Source http://tools.wikimedia.de/~daniel/misc/cswiki-wantedtemplates.sql
Results http://tools.wikimedia.de/~daniel/misc/cswiki-wantedtemplates.txt
Approximate run time ~20 sec
Interval n/a

[edit] Image hash collisions

Description List of images with same SHA1 hashes between two wikis.
Assignee Siebrand
JIRA bug DBQ-5
Source Query service/image hash collisions#Query
Results Query service/image hash collisions#Results
Approximate run time below one minute on commons vs. nlwiki
Interval

[edit] short pages enwiki

Description List of short pages with a single author (excluding user pages and redirects)
Assignee Duesentrieb
JIRA bug DBQ-7
Source Query service/short pages enwiki#Query
Results http://tools.wikimedia.de/~daniel/misc/shortpages-enwiki.txt
Approximate run time not sure, perhaps an hour or so
Interval

[edit] unused templates enwiki

Description List of unused templates (including redirects)
Assignee Duesentrieb
JIRA bug DBQ-8
Source Query service/unused templates#Query
Results http://tools.wikimedia.de/~daniel/misc/unusedtemplates-enwiki.txt (for enwiki)
Approximate run time a couple of hours
Interval

[edit] Temporary Wikipedian userpages

Description List of en:Category:Temporary Wikipedian userpages
Assignee Misza13
JIRA bug DBQ-9
Source Query service/Temporary Wikipedian userpages#Query
Results http://tools.wikimedia.de/~misza13/cat_temp.txt
Approximate run time several minutes
Interval

[edit] long audio files on commons

Description list of all audio files larger than 1MB on commons.
Assignee Duesentrieb
JIRA bug DBQ-10
Source Query service/long audio files#Query
Results http://tools.wikimedia.de/~daniel/misc/commonswiki-long-audio.txt
Approximate run time several hours (because there is no index in img_media_type)
Interval

[edit] broken image links

Description list references to images that are not present locally nor on commons (nowiki)
Assignee Duesentrieb
JIRA bug DBQ-24
Source http://tools.wikimedia.de/~daniel/misc/nowiki-brokenimages.sql
Results http://tools.wikimedia.de/~daniel/misc/nowiki-brokenimages.txt
Approximate run time couple of minutes
Interval

[edit] broken template uses

Description list inclusions of templates that do not exist (nowiki)
Assignee Duesentrieb
JIRA bug DBQ-24
Source http://tools.wikimedia.de/~daniel/misc/nowiki-brokentemplates.sql
Results http://tools.wikimedia.de/~daniel/misc/nowiki-brokentemplates.txt
Approximate run time under one minute
Interval
Personal tools