Jump to content

Manual:initEditCount.php

From mediawiki.org
MediaWiki version:
1.8

Details

[edit]

initEditCount.php file is a maintenance script to init the user_editcount database field based on the number of rows in the revision table.

Options

[edit]
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

[edit]
php maintenance/run.php initEditCount [ --quick| --background ]
Terminal
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.

See also

[edit]