Manual:initEditCount.php
From Linux Web Expert
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.8
<translate> MediaWiki version:</translate> |
MediaWiki file: initEditCount.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.41.1 • 1.40.3 • 1.39.7 |
Classes: | InitEditCount |
Details
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
Option | Description | Required |
---|---|---|
--quick | Force the update to be done in a single query | <translate> Optional</translate> |
--background | Force replication-friendly mode | <translate> Optional</translate> |
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/initEditCount.php [ --quick| --background ]
Terminal
$ php maintenance/initEditCount.php --background Using replication-friendly background mode... mediawiki_db 4 (100.0%) done in 0.0 secs (769.385 accounts/sec). Done!