After exhuastive research, we concluded that iwl_prefix_from_title is not used and in case it's actually used, other indexes provide enough cardinality. This table is about to grow quite large in Commons, let's avoid making it bigger than it needs to be. Bug: T343131 Change-Id: I89e40dff384291968d2465e4109a3d212ae2f8c7
75 lines
1.9 KiB
JSON
75 lines
1.9 KiB
JSON
{
|
|
"comment": "Drop iwl_title field from iwl_prefix_from_title index",
|
|
"before": {
|
|
"name": "iwlinks",
|
|
"comment": "Track inline interwiki links",
|
|
"columns": [
|
|
{
|
|
"name": "iwl_from",
|
|
"comment": "page_id of the referring page",
|
|
"type": "integer",
|
|
"options": { "notnull": true, "unsigned": true, "default": 0 }
|
|
},
|
|
{
|
|
"name": "iwl_prefix",
|
|
"type": "binary",
|
|
"comment": "Interwiki prefix code of the target",
|
|
"options": { "notnull": true, "length": 32, "default": "" }
|
|
},
|
|
{
|
|
"name": "iwl_title",
|
|
"type": "binary",
|
|
"comment": "Title of the target, including namespace",
|
|
"options": { "notnull": true, "length": 255, "default": "" }
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "iwl_prefix_title_from",
|
|
"columns": [ "iwl_prefix", "iwl_title", "iwl_from" ],
|
|
"comment": "Index for ApiQueryIWBacklinks",
|
|
"unique": false
|
|
},
|
|
{
|
|
"name": "iwl_prefix_from_title",
|
|
"columns": [ "iwl_prefix", "iwl_from", "iwl_title" ],
|
|
"comment": "Index for ApiQueryIWLinks",
|
|
"unique": false
|
|
}
|
|
],
|
|
"pk": [ "iwl_from", "iwl_prefix", "iwl_title" ]
|
|
},
|
|
"after": {
|
|
"name": "iwlinks",
|
|
"comment": "Track inline interwiki links",
|
|
"columns": [
|
|
{
|
|
"name": "iwl_from",
|
|
"comment": "page_id of the referring page",
|
|
"type": "integer",
|
|
"options": { "notnull": true, "unsigned": true, "default": 0 }
|
|
},
|
|
{
|
|
"name": "iwl_prefix",
|
|
"type": "binary",
|
|
"comment": "Interwiki prefix code of the target",
|
|
"options": { "notnull": true, "length": 32, "default": "" }
|
|
},
|
|
{
|
|
"name": "iwl_title",
|
|
"type": "binary",
|
|
"comment": "Title of the target, including namespace",
|
|
"options": { "notnull": true, "length": 255, "default": "" }
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "iwl_prefix_title_from",
|
|
"columns": [ "iwl_prefix", "iwl_title", "iwl_from" ],
|
|
"comment": "Index for ApiQueryIWBacklinks",
|
|
"unique": false
|
|
}
|
|
],
|
|
"pk": [ "iwl_from", "iwl_prefix", "iwl_title" ]
|
|
}
|
|
}
|