Last modified: 2013-09-09 20:27:12 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 T54928, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52928 - Drop database table "links" from Wikimedia wikis
Drop database table "links" from Wikimedia wikis
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Site requests (Other open bugs)
wmf-deployment
All All
: Normal enhancement (vote)
: ---
Assigned To: Sean Pringle
:
Depends on:
Blocks: 52921
  Show dependency treegraph
 
Reported: 2013-08-16 17:02 UTC by MZMcBride
Modified: 2013-09-09 20:27 UTC (History)
5 users (show)

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


Attachments

Description MZMcBride 2013-08-16 17:02:07 UTC
On at least enwiki, there is a "links" database table that appears to be unused and unneeded.

Its schema:

MariaDB [enwiki_p]> describe links;
+--------+-----------------+------+-----+---------+-------+
| Field  | Type            | Null | Key | Default | Extra |
+--------+-----------------+------+-----+---------+-------+
| l_from | int(8) unsigned | NO   |     | 0       |       |
| l_to   | int(8) unsigned | NO   |     | 0       |       |
+--------+-----------------+------+-----+---------+-------+
2 rows in set (0.03 sec)

This database table should be dropped from all Wikimedia wikis.
Comment 1 Sean Pringle 2013-08-31 03:58:52 UTC
The "links" table exists on all wikis.

Though enwiki.links is empty, some wikis have small amounts of data in the table. 

Therefore I've renamed it to "links_old" for now, to be dropped after a suitable cooling-off period.
Comment 2 MZMcBride 2013-09-01 02:23:29 UTC
(In reply to comment #1)
> The "links" table exists on all wikis.

How are you checking for table existence across all wikis? Can you output the full findings? (For example, I don't see a "links" database table on foundationwiki_p or testwiki_p, but I do see one on mediawikiwiki_p and zhwiki_p.)

> Therefore I've renamed it to "links_old" for now, to be dropped after a
> suitable cooling-off period.

Thanks. :-)
Comment 3 Sean Pringle 2013-09-01 08:28:48 UTC
Actually, I shouldn't have said 'all wikis', just 'most wikis'.

I have a sandbox mysqld on terbium with various metadata pulled daily from information_schema on all the database hosts.

CREATE TABLE `db_tables` (
  `host_id` int(10) unsigned NOT NULL,
  `db` varchar(32) NOT NULL,
  `name` varchar(32) NOT NULL,
  `engine` varchar(16) DEFAULT NULL,
  `version` varchar(10) DEFAULT NULL,
  `format` varchar(10) DEFAULT NULL,
  `rows` bigint(20) unsigned DEFAULT NULL,
  `data_len` bigint(20) unsigned DEFAULT NULL,
  `index_len` bigint(20) unsigned DEFAULT NULL,
  `auto_inc` bigint(20) unsigned DEFAULT NULL,
  UNIQUE KEY `host_id` (`host_id`,`db`,`name`)
);

select distinct t.db as dbs_with_links from db_tables t where t.name = 'links' order by db;

+------------------+
| dbs_with_links   |
+------------------+
| aawiki           |
| abwiki           |
| afwiki           |
| akwiki           |
| alswiki          |
| amwiki           |
| angwiki          |
| anwiki           |
| arcwiki          |
| arwiki           |
| astwiki          |
| aswiki           |
| avwiki           |
| aywiki           |
| azwiki           |
| bawiki           |
| be_x_oldwiki     |
| bgwiki           |
| bhwiki           |
| biwiki           |
| bmwiki           |
| bnwiki           |
| bowiki           |
| brwiki           |
| bswiki           |
| cawiki           |
| cebwiki          |
| cewiki           |
| chowiki          |
| chrwiki          |
| chwiki           |
| chywiki          |
| closed_zh_twwiki |
| cowiki           |
| crwiki           |
| csbwiki          |
| cswiki           |
| cvwiki           |
| cywiki           |
| dawiki           |
| dewiki           |
| dkwiki           |
| dvwiki           |
| dzwiki           |
| eewiki           |
| elwiki           |
| enwiki           |
| eowiki           |
| eswiki           |
| etwiki           |
| euwiki           |
| fawiki           |
| ffwiki           |
| fiu_vrowiki      |
| fiwiki           |
| fjwiki           |
| fowiki           |
| frwiki           |
| furwiki          |
| fywiki           |
| gawiki           |
| gdwiki           |
| glwiki           |
| gnwiki           |
| gotwiki          |
| guwiki           |
| gvwiki           |
| hawiki           |
| hawwiki          |
| hewiki           |
| hiwiki           |
| howiki           |
| hrwiki           |
| htwiki           |
| huwiki           |
| hywiki           |
| hzwiki           |
| iawiki           |
| idwiki           |
| iewiki           |
| igwiki           |
| iiwiki           |
| ikwiki           |
| iowiki           |
| iswiki           |
| itwiki           |
| iuwiki           |
| jawiki           |
| jbowiki          |
| jvwiki           |
| kawiki           |
| kgwiki           |
| kiwiki           |
| kjwiki           |
| kkwiki           |
| klwiki           |
| kmwiki           |
| knwiki           |
| kowiki           |
| krwiki           |
| kswiki           |
| kuwiki           |
| kvwiki           |
| kwwiki           |
| kywiki           |
| lawiki           |
| lbwiki           |
| lgwiki           |
| liwiki           |
| lnwiki           |
| lowiki           |
| ltwiki           |
| lvwiki           |
| mediawikiwiki    |
| metawiki         |
| mgwiki           |
| mhwiki           |
| miwiki           |
| mkwiki           |
| mlwiki           |
| mnwiki           |
| mowiki           |
| mrwiki           |
| mswiki           |
| mtwiki           |
| muswiki          |
| mywiki           |
| nahwiki          |
| nawiki           |
| ndswiki          |
| newiki           |
| ngwiki           |
| nlwiki           |
| nnwiki           |
| nowiki           |
| nvwiki           |
| nywiki           |
| ocwiki           |
| omwiki           |
| orwiki           |
| oswiki           |
| pamwiki          |
| pawiki           |
| piwiki           |
| plwiki           |
| pswiki           |
| ptwiki           |
| quwiki           |
| rel13testwiki    |
| rmwiki           |
| rnwiki           |
| roa_rupwiki      |
| rowiki           |
| ruwiki           |
| rwwiki           |
| sawiki           |
| scnwiki          |
| scowiki          |
| scwiki           |
| sdwiki           |
| sewiki           |
| sgwiki           |
| shwiki           |
| simplewiki       |
| siwiki           |
| skwiki           |
| slwiki           |
| smwiki           |
| snwiki           |
| sowiki           |
| sqwiki           |
| srwiki           |
| sswiki           |
| stwiki           |
| suwiki           |
| svwiki           |
| swwiki           |
| tawiki           |
| tewiki           |
| tgwiki           |
| thwiki           |
| tiwiki           |
| tkwiki           |
| tlhwiki          |
| tlwiki           |
| tnwiki           |
| tokiponawiki     |
| towiki           |
| tpiwiki          |
| trwiki           |
| tswiki           |
| ttwiki           |
| tumwiki          |
| twwiki           |
| tywiki           |
| ugwiki           |
| ukwiki           |
| urwiki           |
| uzwiki           |
| vewiki           |
| viwiki           |
| vowiki           |
| wawiki           |
| wowiki           |
| xhwiki           |
| yiwiki           |
| yowiki           |
| zawiki           |
| zhwiki           |
| zh_cnwiki        |
| zh_min_nanwiki   |
| zuwiki           |
+------------------+
212 rows in set (0.26 sec)
Comment 4 p858snake 2013-09-01 08:32:19 UTC
(In reply to comment #1)
> The "links" table exists on all wikis.
> 
> Though enwiki.links is empty, some wikis have small amounts of data in the
> table. 
> 
> Therefore I've renamed it to "links_old" for now, to be dropped after a
> suitable cooling-off period.

https://www.mediawiki.org/wiki/Manual:Links_table 1.5.0 is when it died.
Comment 5 Sean Pringle 2013-09-09 20:27:12 UTC
"links" table has been removed from all wikis.

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


Navigation
Links