Manual:Externallinks table/ja

externallinks テーブルでは、MediaWiki が外部リンクを格納して追跡します.

el_id
主キーです. 現状では利用されていませんが、オンラインのスキーマ変更の際に役立ちます.

el_from
ウィキ ページを参照するページ識別子です.

el_to
実際のURLそのまま. ブラウザーに渡されます.

el_index
これは  と同じ URL を検索に最適化したものです: 利用者名やパスワードの情報を除去し、その他の要素は検索を高速化するために逆順にしているため、例えば   は   になります. これにより「*.example.com へのリンクをすべて表示」の形式の検索ができるようになります.

el_index_60
部分インデックスでは並べ替え可能なクエリが実行できないため、el_indexを60バイトに切り捨てたものです.

el_to_domain_index
This is similar to el_index but only includes the protocol specification and domain in reversed, so  becomes.

el_to_path
Only the path of el_to. Example:



スキーマの要約
++--+--+-+-++ ++--+--+-+-++ ++--+--+-+-++  +---+++--++---+-+--++--++-+---+-+ +---+++--++---+-+--++--++-+---+-+ +---+++--++---+-+--++--++-+---+-+
 * Field             | Type             | Null | Key | Default | Extra          |
 * el_id             | int(10) unsigned | NO   | PRI | NULL    | auto_increment |
 * el_from           | int(10) unsigned | NO   | MUL | 0       |                |
 * el_to_domain_index | varbinary(255)  | NO   | MUL |         |                |
 * el_to_path        | blob             | YES  |     | NULL    |                |
 * Table        | Non_unique | Key_name                   | Seq_in_index | Column_name        | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment | Ignored |
 * externallinks |         0 | PRIMARY                    |            1 | el_id              | A         |           0 |     NULL | NULL   |      | BTREE      |         |               | NO      |
 * externallinks |         1 | el_from                    |            1 | el_from            | A         |           0 |     NULL | NULL   |      | BTREE      |         |               | NO      |
 * externallinks |         1 | el_to_domain_index_to_path |            1 | el_to_domain_index | A         |           0 |     NULL | NULL   |      | BTREE      |         |               | NO      |
 * externallinks |         1 | el_to_domain_index_to_path |            2 | el_to_path         | A         |           0 |       60 | NULL   | YES  | BTREE      |         |               | NO      |

++--+--+-+-++ ++--+--+-+-++ ++--+--+-+-++  +---+++--++---+-+--++--++-+---+ +---+++--++---+-+--++--++-+---+ +---+++--++---+-+--++--++-+---+
 * Field             | Type             | Null | Key | Default | Extra          |
 * el_id             | int(10) unsigned | NO   | PRI | NULL    | auto_increment |
 * el_from           | int(10) unsigned | NO   | MUL | 0       |                |
 * el_to             | blob             | NO   | MUL | NULL    |                |
 * el_index          | blob             | NO   | MUL | NULL    |                |
 * el_index_60       | varbinary(60)    | NO   | MUL | NULL    |                |
 * el_to_domain_index | varbinary(255)  | NO   | MUL |         |                |
 * el_to_path        | blob             | YES  |     | NULL    |                |
 * Table        | Non_unique | Key_name                   | Seq_in_index | Column_name        | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
 * externallinks |         0 | PRIMARY                    |            1 | el_id              | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * externallinks |         1 | el_from                    |            1 | el_from            | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * externallinks |         1 | el_to                      |            1 | el_to              | A         |           0 |       60 | NULL   |      | BTREE      |         |               |
 * externallinks |         1 | el_to                      |            2 | el_from            | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * externallinks |         1 | el_index                   |            1 | el_index           | A         |           0 |       60 | NULL   |      | BTREE      |         |               |
 * externallinks |         1 | el_index_60                |            1 | el_index_60        | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * externallinks |         1 | el_index_60                |            2 | el_id              | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * externallinks |         1 | el_from_index_60           |            1 | el_from            | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * externallinks |         1 | el_from_index_60           |            2 | el_index_60        | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * externallinks |         1 | el_from_index_60           |            3 | el_id              | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * externallinks |         1 | el_to_domain_index_to_path |            1 | el_to_domain_index | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * externallinks |         1 | el_to_domain_index_to_path |            2 | el_to_path         | A         |           0 |       60 | NULL   | YES  | BTREE      |         |               |

+-+--+--+-+-++ +-+--+--+-+-++ +-+--+--+-+-++  +---++--+--+-+---+-+--++--++-+---+ +---++--+--+-+---+-+--++--++-+---+ +---++--+--+-+---+-+--++--++-+---+
 * Field      | Type             | Null | Key | Default | Extra          |
 * el_id      | int(10) unsigned | NO   | PRI | NULL    | auto_increment |
 * el_from    | int(10) unsigned | NO   | MUL | 0       |                |
 * el_to      | blob             | NO   | MUL | NULL    |                |
 * el_index   | blob             | NO   | MUL | NULL    |                |
 * el_index_60 | varbinary(60)   | NO   | MUL | NULL    |                |
 * Table        | Non_unique | Key_name         | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
 * externallinks |         0 | PRIMARY          |            1 | el_id       | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * externallinks |         1 | el_from          |            1 | el_from     | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * externallinks |         1 | el_from          |            2 | el_to       | A         |           0 |       40 | NULL   |      | BTREE      |         |               |
 * externallinks |         1 | el_to            |            1 | el_to       | A         |           0 |       60 | NULL   |      | BTREE      |         |               |
 * externallinks |         1 | el_to            |            2 | el_from     | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * externallinks |         1 | el_index         |            1 | el_index    | A         |           0 |       60 | NULL   |      | BTREE      |         |               |
 * externallinks |         1 | el_index_60      |            1 | el_index_60 | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * externallinks |         1 | el_index_60      |            2 | el_id       | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * externallinks |         1 | el_from_index_60 |            1 | el_from     | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * externallinks |         1 | el_from_index_60 |            2 | el_index_60 | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * externallinks |         1 | el_from_index_60 |            3 | el_id       | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |

+-+--+--+-+-++ +-+--+--+-+-++ +-+--+--+-+-++
 * Field      | Type             | Null | Key | Default | Extra          |
 * el_id      | int(10) unsigned | NO   | PRI | NULL    | auto_increment |
 * el_from    | int(10) unsigned | NO   | MUL | 0       |                |
 * el_to      | blob             | NO   | MUL | NULL    |                |
 * el_index   | blob             | NO   | MUL | NULL    |                |
 * el_index_60 | varbinary(60)   | NO   | MUL |         |                |

+--+--+--+-+-++ +--+--+--+-+-++ +--+--+--+-+-++
 * Field   | Type             | Null | Key | Default | Extra          |
 * el_id   | int(10) unsigned | NO   | PRI | NULL    | auto_increment |
 * el_from | int(10) unsigned | NO   | MUL | 0       |                |
 * el_to   | blob             | NO   | MUL | NULL    |                |
 * el_index | blob            | NO   | MUL | NULL    |                |

+--+--+--+-+-+---+ +--+--+--+-+-+---+ +--+--+--+-+-+---+
 * Field   | Type             | Null | Key | Default | Extra |
 * el_from | int(10) unsigned | NO   | MUL | 0       |       |
 * el_to   | blob             | NO   | MUL | NULL    |       |
 * el_index | blob            | NO   | MUL | NULL    |       |

+--+-+--+-+-+---+ +--+-+--+-+-+---+ +--+-+--+-+-+---+
 * Field   | Type            | Null | Key | Default | Extra |
 * el_from | int(8) unsigned | NO   | MUL | 0       |       |
 * el_to   | blob            | NO   | MUL | NULL    |       |
 * el_index | blob           | NO   | MUL | NULL    |       |