Actor migration/es

Antes, MediaWiki almacenaba las referencias a los usuarios (como el autor de una imagen o revisión) como un par de 1$ y 2$ para las ediciones anónimas. Esto era un desperdicio en espacio de almacenamiento, causaba problemas de rendimiento en las wikis con muchas revisiones, y dificultaba renombrar a los usuarios o introducir nuevos tipos de autores (como los 1$). En MediaWiki 1.31 se introduce el concepto de "actores" (alguien que realiza un acción, como editar o registrar un evento; actualmente esta usuario puede estar registrado o ser anónimo). Adicionalmente, un proceso de migración hacia un nuevo modelo para la base de datos,en donde los campos como 1$ y 2$ son remplazados con 3$. 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. It is expected to finish in 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. The following columns are being migrated:

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.

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.