Last modified: 2007-07-06 21:56:18 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 T12481, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10481 - user_editcount not counting properly
user_editcount not counting properly
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.11.x
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-07-06 14:55 UTC by Filip Maljkovic [Dungodung]
Modified: 2007-07-06 21:56 UTC (History)
0 users

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


Attachments

Description Filip Maljkovic [Dungodung] 2007-07-06 14:55:05 UTC
The user_editcount table seems to be broken. If I compare the edit counts of myself and my bot on sr: wiki (courtesy of the toolserver) using two different methods (old with count(*) and new with user_editcount), I'm getting very different results.

mysql> SELECT COUNT(*) FROM revision, page WHERE rev_user_text= 'Dungodung' AND rev_page = page_id;
+----------+
| COUNT(*) |
+----------+
|    25103 | 
+----------+
1 row in set (2.28 sec)

mysql> SELECT user_editcount FROM user WHERE user_name = 'Dungodung';
+----------------+
| user_editcount |
+----------------+
|          24927 | 
+----------------+
1 row in set (0.03 sec)

mysql> SELECT COUNT(*) FROM revision, page WHERE rev_user_text= 'FelixBot' AND rev_page = page_id;
+----------+
| COUNT(*) |
+----------+
|   121244 | 
+----------+
1 row in set (3.99 sec)

mysql> SELECT user_editcount FROM user WHERE user_name = 'FelixBot';
+----------------+
| user_editcount |
+----------------+
|         120610 | 
+----------------+
1 row in set (0.01 sec)
Comment 1 Brion Vibber 2007-07-06 15:00:29 UTC
user_editcount counts edits you make even if they have been deleted.
Comment 2 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-07-06 17:53:09 UTC
Then why is COUNT(*) *higher*?
Comment 3 Brion Vibber 2007-07-06 21:56:18 UTC
Imports? Special null edits? Other various activity that's not directly counted?

user_editcount is for heuristic purposes to measure account usage, it is not an exact counter of currently-present revisions. For that, more detailed breakdowns are expected to be wanted anyway.

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


Navigation
Links