Actor migration/ja

歴史的に、MediaWiki は利用者 (版や画像の作者など) への参照を  の対 (匿名利用者の場合は  ) で格納してきました. これは格納容量の無駄であり、版が大量にあるウィキでパフォーマンスの問題点を生じたため、利用者名の変更や作者の新しい種類 (T133452 など) の導入が非常に困難になりました. MediaWiki 1.31 introduces the concept of actors (someone who makes an action, such as an edit or a log event; currently either a registered user or an anonymous one), and a migration process towards a new database schema, with fields like  and   replaced by fields like. Due to the huge size of the English Wikipedia revision table, which must be fully migrated before the changes can be cleaned up, the migration is being done gradually, over several MediaWiki releases. MediaWiki 1.34 で完了する予定です.

The migration will create an table record for every distinct   /   pair, and replace those pairs with a reference to the actor row ID. 以下のカラムの移行が進行中です:

To avoid doing a costly ALTER TABLE on the extremely huge revision tables of large Wikipedia wikis,  and   are initially copied to the  table and from there back to. The revision_actor_temp table will be dropped afterwards.

If you are a wiki owner, you probably don't need to do anything, the migration will happen automatically when you run. If you want to control when the migration happens, see and the  maintenance script (that page also has the details of what gets migrated where).

If you are an extension developer, and your extension does direct DB access to some of the affected fields, you'll need to update your queries (and ideally use the  methods, such as , instead of manually constructing your query). During the migration period, you can also use the  class to get schema/field information that respects any   settings.

If you are a tool developer using, there might be performance implications, even if you don't use any of the affected fields directly. See wikitech:News/Actor storage changes on the Wiki Replicas for additional information.