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

Semantic MediaWiki 3.2.0Released on 7 September 2020 and compatible with MW 1.31.0 - 1.35.x. brought an improved client output to this maintenance script.2

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

Usage[edit]

php removeDuplicateEntities.php [--s|--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
--s <startid> Start refreshing at given object ID. Useful for partial refreshing.
--report-runtime Will return memory usage and runtime of the respective script execution. Available since Semantic MediaWiki 3.1.0Released on 23 September 2019 and compatible with MW 1.31.0 - 1.33.x..3
--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 23 September 2019 and compatible with MW 1.31.0 - 1.33.x..3

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".4 Otherwise an exception will be issued informing about the minimum value for this setting ("32" or higher is recommended).5

Examples[edit]

See also[edit]


References

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