Manual:InitEditCount.php
Appearance
Versão MediaWiki: | ≥ 1.8 |
Arquivo MediaWiki: initEditCount.php | |
---|---|
Local: | maintenance/ |
Código fonte: | master • 1.43.0 • 1.42.4 • 1.39.11 |
Classes: | InitEditCount |
Detalhes
O arquivo initEditCount.php é um script de manutenção para inicializar o campo user_editcount
do banco de dados, com base no número de linhas na tabela de revision
.
Options
Option | Description | Required |
---|---|---|
--quick | Force the update to be done in a single query | Optional |
--background | Force replication-friendly mode | Optional |
Background mode will be automatically used if multiple servers are listed in the load balancer, usually indicating a replication environment. This avoids locking tables or lagging replica databases with large updates.
Usage
php maintenance/run.php initEditCount [ --quick| --background ]
Terminal
$ php maintenance/run.php initEditCount --background Using replication-friendly background mode... mediawiki_db 4 (100.0%) done in 0.0 secs (769.385 accounts/sec). Done!
In MediaWiki version 1.39.10 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php
instead of php maintenance/run.php scriptName
.