Last modified: 2014-01-03 16:09:23 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T61455, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59455 - DBQ-179 Database Query
DBQ-179 Database Query
Status: RESOLVED FIXED
Product: Tool Labs tools
Classification: Unclassified
Database Queries (Other open bugs)
unspecified
All All
: Unprioritized critical
: ---
Assigned To: Bugzilla Bug Importer (valhallasw)
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-03 16:09 UTC by Bugzilla Bug Importer (valhallasw)
Modified: 2014-01-03 16:09 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Bugzilla Bug Importer (valhallasw) 2014-01-03 16:09:11 UTC
This issue was converted from https://jira.toolserver.org/browse/DBQ-179.
Summary: Database Query
Issue type: Task - A task that needs to be done.
Priority: Critical
Status: Done
Assignee: Hoo man <hoo@online.de>

-------------------------------------------------------------------------------
From: Franz Herbach <franzherbach@yahoo.de>
Date: Tue, 03 Apr 2012 22:21:27
-------------------------------------------------------------------------------

Thank you so much for helping me
Comment 1 Bugzilla Bug Importer (valhallasw) 2014-01-03 16:09:13 UTC
-------------------------------------------------------------------------------
From: Hoo man <hoo@online.de>
Date: Tue, 03 Apr 2012 22:40:13
-------------------------------------------------------------------------------

I'm sorry, but I need further information on what you want: Which wiki, Which bot(s), ...?
Comment 2 Bugzilla Bug Importer (valhallasw) 2014-01-03 16:09:15 UTC
-------------------------------------------------------------------------------
From: Hoo man <hoo@online.de>
Date: Tue, 03 Apr 2012 23:10:49
-------------------------------------------------------------------------------

Ok, so you only need the number of edits? That's pretty easy, but I need a list of bots, cause I can't just look for bot edits (as those are only tagged in the recentchanges table which only goes back 30 days)... can you give me that list or should I compile it myself from that page (http://en.wikipedia.org/wiki/Wikipedia:Bots/Status)
Comment 3 Bugzilla Bug Importer (valhallasw) 2014-01-03 16:09:16 UTC
-------------------------------------------------------------------------------
From: Hoo man <hoo@online.de>
Date: Wed, 04 Apr 2012 12:09:05
-------------------------------------------------------------------------------

Things needed longer than I thought cause the queries I originally wanted to run were quite long, which doesn't work well together with a query killer ![][1]  
But due to that I got additional information, which might be useful for you as well... a file including the number of edits a bot did in which year (for all bots).  
I guess you don't need the queries (as they were rather trivial) so I didn't list them, feel free to ask if you need them.

Results:  
1:  
http://toolserver.org/~hoo/dbq/dbq-179_1.txt (plain text)  
http://toolserver.org/~hoo/dbq/dbq-179_1.csv (csv)  
2:  
http://toolserver.org/~hoo/dbq/dbq-179_2.txt (plain text)  
http://toolserver.org/~hoo/dbq/dbq-179_2.csv (csv)  
3 (the additional data):  
http://toolserver.org/~hoo/dbq/dbq-179_3.txt (plain text)  
http://toolserver.org/~hoo/dbq/dbq-179_3.csv (csv)

Good luck with your thesis ![][2]

   [1]: https://jira.toolserver.org/images/icons/emoticons/tongue.gif
   [2]: https://jira.toolserver.org/images/icons/emoticons/wink.gif
Comment 4 Bugzilla Bug Importer (valhallasw) 2014-01-03 16:09:18 UTC
-------------------------------------------------------------------------------
From: Hoo man <hoo@online.de>
Date: Wed, 04 Apr 2012 14:25:57
-------------------------------------------------------------------------------

I ran it on all namespaces... that's not what you wanted, is it? :/
Comment 5 Bugzilla Bug Importer (valhallasw) 2014-01-03 16:09:19 UTC
-------------------------------------------------------------------------------
From: Hoo man <hoo@online.de>
Date: Wed, 04 Apr 2012 14:31:23
-------------------------------------------------------------------------------

Yes, but it will make stuff slower... I hope I can get that done today, hang on ![][1]

   [1]: https://jira.toolserver.org/images/icons/emoticons/wink.gif
Comment 6 Bugzilla Bug Importer (valhallasw) 2014-01-03 16:09:21 UTC
-------------------------------------------------------------------------------
From: Hoo man <hoo@online.de>
Date: Wed, 04 Apr 2012 18:06:37
-------------------------------------------------------------------------------

The fixed results can be found under the links from the original results, which I posted earlier.

How I did it:  
I compiled a list of all bots on enwiki (from the lists you gave me) and run the following query in a loop for all of them (this is number 3):
    
    SELECT /* SLOW_OK */ LEFT(rev_timestamp, 4) as year, rev_user_text as user, COUNT(*) as edits FROM revision INNER JOIN page ON page_id = rev_page WHERE rev_user_text = 'USER' AND page_namespace = 0 GROUP BY LEFT(rev_timestamp, 4);

Than I imported that result to a new table called 'dbq179_1' (on a different server, cause I couldn't use INSERT SELECT as the user tables on s1 atm AFAIK aren't available).  
And then I ran:  

    
    SELECT year, SUM(edits) FROM dbq179_1 GROUP BY year;

for 1 and  

    
    SELECT user, SUM(edits) FROM dbq179_1 GROUP BY user;

for 2. If you know SQL, you'll see that those are pretty trivial, that's why I didn't list them first, sorry ![][1]

   [1]: https://jira.toolserver.org/images/icons/emoticons/wink.gif
Comment 7 Bugzilla Bug Importer (valhallasw) 2014-01-03 16:09:23 UTC
This bug was imported as RESOLVED. The original assignee has therefore not been
set, and the original reporters/responders have not been added as CC, to
prevent bugspam.

If you re-open this bug, please consider adding these people to the CC list:
Original assignee: hoo@online.de
CC list: hoo@online.de

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links