Maintenance script "remove­Duplicate­Entities.php"

From semantic-mediawiki.org
Maintenance script "remove­Duplicate­Entities.php"Maintenance script "removeDuplicateEntities.php" example (no parameter)
removeDuplicateEntities.php
Allows to remove all duplicate entities with no reference in any other table from the entity table
Further Information
Provided by: Semantic MediaWiki
Added: 3.0.0
Removed: still in use
Location (path): ./extensions/SemanticMediaWiki/maintenance/
Table of Contents

The "removeDuplicateEntities.php" maintenance script removes all duplicate entities with no reference in any other table from the entity table. It was introduced in Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x..1

It is recommended to run this script in monthly intervals as part of the general wiki maintenance.

Usage[edit]

php removeDuplicateEntities.php [--report-runtime|--with-maintenance-log]
This only shows the script specific parameters.

Parameters[edit]

Maintenance scripts provide generic maintenance parameters, script dependent parameters and depending on the maintenance script script specific parameters which are described on this page if provided.

Script specific parameters[edit]

Options[edit]

Parameter Description
--report-runtime Will return memory usage and runtime of the respective script execution. Available since Semantic MediaWiki 3.1.0Released on and compatible with MW 1.31.0 - 1.33.x..2
--with-maintenance-log Adds a log entry to "Special:Logs" on the wiki and reports the script's runtime. Available since Semantic MediaWiki 3.1.0Released on and compatible with MW 1.31.0 - 1.33.x..2

NoteNote:  If you are using this parameter make sure that MediaWiki's Configuration parameter $wgMaxNameChars (MediaWiki.org) is set to a value not lower than "29".3 Otherwise an exception will be issued informing about the minimum value for this setting ("32" or higher is recommended).4

Examples[edit]

See also[edit]


References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:2932
  2. a b  Semantic MediaWiki: GitHub pull request gh:smw:4151
  3. ^  Semantic MediaWiki: GitHub issue gh:smw:1983
  4. ^  Semantic MediaWiki: GitHub pull request gh:smw:1985