Last modified: 2014-01-03 15:37:28 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 T61295, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59295 - DBQ-39 the list of creator
DBQ-39 the list of creator
Status: RESOLVED FIXED
Product: Tool Labs tools
Classification: Unclassified
Database Queries (Other open bugs)
unspecified
All All
: Unprioritized major
: ---
Assigned To: Bugzilla Bug Importer (valhallasw)
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-03 15:37 UTC by Bugzilla Bug Importer (valhallasw)
Modified: 2014-01-03 15:37 UTC (History)
0 users

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


Attachments

Description Bugzilla Bug Importer (valhallasw) 2014-01-03 15:37:17 UTC
This issue was converted from https://jira.toolserver.org/browse/DBQ-39.
Summary: the list of creator
Issue type: Task - A task that needs to be done.
Priority: Major
Status: Done
Assignee: (none)

-------------------------------------------------------------------------------
From: zeyi He <wikipediathinker@googlemail.com>
Date: Sat, 06 Sep 2008 16:20:09
-------------------------------------------------------------------------------

I want the list of creator, in which, we have all fegistered users who have created a new article. The columns in this table are username, the number of created article, the number of edit. 

Is that possible?

thanks a lot!!!
Comment 1 Bugzilla Bug Importer (valhallasw) 2014-01-03 15:37:19 UTC
-------------------------------------------------------------------------------
From: Autocracy <jeff@storyinmemo.com>
Date: Thu, 11 Sep 2008 14:15:05
-------------------------------------------------------------------------------

Yes it is _possible_, but it's also a REALLY long query. In fact, it is so disgustingly long that I previously suggested it be handled by means of a separate table where that information is inserted by a trigger.

The short answer is: I don't think you can get this information.
Comment 2 Bugzilla Bug Importer (valhallasw) 2014-01-03 15:37:20 UTC
-------------------------------------------------------------------------------
From: zeyi He <wikipediathinker@googlemail.com>
Date: Thu, 18 Sep 2008 21:48:33
-------------------------------------------------------------------------------

hi, i found the qury here, https://jira.toolserver.org/browse/DBQ-3. so may i ask is it possible to run some like this with the number of edit as well?  
thanks.
Comment 3 Bugzilla Bug Importer (valhallasw) 2014-01-03 15:37:22 UTC
-------------------------------------------------------------------------------
From: Bryan Tong Minh <bryan@tools.wikimedia.de>
Date: Fri, 26 Sep 2008 09:31:27
-------------------------------------------------------------------------------

Should be something like:

SELECT lr_user, COUNT(lr_title) AS lr_creation_count, lr_editcount AS user_editcount FROM (SELECT page_title AS lr_title, MIN(rev_id) AS lr_rev_id, rev_user_text AS lr_user FROM page, revision WHERE page_namespace = 0 AND page_is_redirect = 0 AND rev_page = page_id GROUP BY rev_page) AS lowest_revision, user WHERE lr_user = user_name GROUP BY lr_user HAVING lr_creation_count > 5 ORDER BY lr_creation_count DESC;

For which wiki would you like it?
Comment 4 Bugzilla Bug Importer (valhallasw) 2014-01-03 15:37:24 UTC
-------------------------------------------------------------------------------
From: zeyi He <wikipediathinker@googlemail.com>
Date: Sun, 28 Sep 2008 15:59:47
-------------------------------------------------------------------------------

English Wiki? thanks very much!  
Is that possible you give me a date and time when you finish this query? I need them for reference, thanks.
Comment 5 Bugzilla Bug Importer (valhallasw) 2014-01-03 15:37:25 UTC
-------------------------------------------------------------------------------
From: MZMcBride <mzmcbride@gmail.com>
Date: Fri, 20 Mar 2009 18:19:19
-------------------------------------------------------------------------------

Running query now in screen.

> SELECT  
lr_user,  
COUNT(lr_title) AS lr_creation_count,  
user_editcount AS lr_editcount  
FROM (SELECT  
page_title AS lr_title,  
MIN(rev_id) AS lr_rev_id,  
rev_user_text AS lr_user  
FROM page, revision  
WHERE page_namespace = 0  
AND page_is_redirect = 0  
AND rev_page = page_id  
GROUP BY rev_page) AS lowest_revision  
JOIN user ON lr_user = user_name  
GROUP BY lr_user  
HAVING lr_creation_count > 0  
ORDER BY lr_creation_count DESC;
Comment 6 Bugzilla Bug Importer (valhallasw) 2014-01-03 15:37:27 UTC
-------------------------------------------------------------------------------
From: MZMcBride <mzmcbride@gmail.com>
Date: Sat, 21 Mar 2009 05:34:45
-------------------------------------------------------------------------------

Query finished. Available at http://toolserver.org/~mzmcbride/dbq/dbq-39.txt.gz

Data as of Saturday, March 21, 2009 4:48 (UTC).

Please open a new issue for further queries.
Comment 7 Bugzilla Bug Importer (valhallasw) 2014-01-03 15:37:28 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: (none)
CC list: b@mzmcbride.com, Bryan.TongMinh@Gmail.com, bugzilla@storyinmemo.com

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


Navigation
Links