Last modified: 2008-12-09 23:00:38 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 T18603, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16603 - Write and run script to purge old rows from categorylinks table on WMF wikis
Write and run script to purge old rows from categorylinks table on WMF wikis
Status: RESOLVED DUPLICATE of bug 16112
Product: Wikimedia
Classification: Unclassified
Site requests (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-09 22:57 UTC by MZMcBride
Modified: 2008-12-09 23:00 UTC (History)
0 users

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


Attachments

Description MZMcBride 2008-12-09 22:57:01 UTC
Looking at queries run on the Toolserver's replica of the en.wiki database:

mysql> SELECT * FROM categorylinks WHERE cl_to = "Africa-related_stubs";
+---------+----------------------+----------------+---------------------+
| cl_from | cl_to                | cl_sortkey     | cl_timestamp        |
+---------+----------------------+----------------+---------------------+
|  891746 | Africa-related_stubs | Hamani Diori   | 2005-05-31 04:11:48 | 
| 1547553 | Africa-related_stubs | Patty Schnyder | 2005-02-26 17:30:45 | 
+---------+----------------------+----------------+---------------------+
2 rows in set (0.04 sec)

mysql> SELECT * FROM page WHERE page_id = 891746;
Empty set (1.22 sec)


It's clear that there are old rows in the categorylinks table that for some reason were not purged when the page was deleted. The rows reference deleted pages. This causes inaccuracies when things like COUNT(cl_to) are run in database queries.

A maintenance script should be written and run on the categorylinks tables of WMF wikis to purge these old rows.
Comment 1 P.Copp 2008-12-09 23:00:38 UTC

*** This bug has been marked as a duplicate of bug 16112 ***

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


Navigation
Links