Manual:revision_comment_temp テーブル
Appearance
Outdated translations are marked like this.
↑ Manual:コンテンツ | MediaWiki のデータベース レイアウト | revision_comment_temp テーブル |
MediaWiki バージョン: | 1.30 – 1.40 |
revision_comment_temp テーブルは、revision
テーブルの各行と comment
テーブルの各行との間に関係を作成する一時的なテーブルでした。
revision
テーブルの変更 (alter) でのブロッキングを避けるために作成されました。
英語版ウィキペディアのような大規模なウィキでは、revision
テーブルの変更 (alter) には1か月程度の期間を要します。
This table was created so that other data migrations could be done while the alter was running.
Once adding the rev_comment_id field to the revision
table was done, the data from revision_comment_temp
was merged back into the revision
table and the table was deleted.
このテーブルは Gerrit change 357892 で導入されました。 image_comment_temp テーブルも参照してください。
フィールド
revcomment_rev
revision.rev_id へのキー
revcomment_comment_id
comment.comment_id へのキー
スキーマの要約
MediaWiki バージョン: | 1.30 – 1.40 |
DESCRIBE revision_comment_temp;
+-----------------------+---------------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------------------+---------------------+------+-----+---------+-------+ | revcomment_rev | int(10) unsigned | NO | PRI | NULL | | | revcomment_comment_id | bigint(20) unsigned | NO | PRI | NULL | | +-----------------------+---------------------+------+-----+---------+-------+
インデックス
MediaWiki バージョン: | 1.30 – 1.40 |
SHOW INDEX IN revision_comment_temp;
+-----------------------+------------+----------------+--------------+-----------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+ | Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment | +-----------------------+------------+----------------+--------------+-----------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+ | revision_comment_temp | 0 | PRIMARY | 1 | revcomment_rev | A | 0 | NULL | NULL | | BTREE | | | | revision_comment_temp | 0 | PRIMARY | 2 | revcomment_comment_id | A | 0 | NULL | NULL | | BTREE | | | | revision_comment_temp | 0 | revcomment_rev | 1 | revcomment_rev | A | 0 | NULL | NULL | | BTREE | | | +-----------------------+------------+----------------+--------------+-----------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+