Help:Maintenance script removeDuplicateEntities.php

From Linux Web Expert

Revision as of 04:41, 28 March 2020 by >Kghbln (typo)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:MW file/noslash Template:MW file/noslash 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 an unknown date unknown versions of MediaWiki.1

Semantic MediaWiki 3.2.0Released on an unknown date unknown versions of MediaWiki 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

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

Parameters

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

Options

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 an unknown date unknown versions of MediaWiki.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 an unknown date unknown versions of MediaWiki.3

File:OOjs UI icon lightbulb-yellow.svg <translate> Note:</translate> 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

See also

#scite could not render a citation text for reference "gh:smw:2932" because type "pullrequest" was not assigned to a template.
#scite could not render a citation text for reference "gh:smw:4151" because type "pullrequest" was not assigned to a template.
#scite could not render a citation text for reference "gh:smw:4551" because type "pullrequest" was not assigned to a template.

References

  1. ^ gh:smw:2932 
  2. ^ gh:smw:4551 
  3. a b gh:smw:4151 
  4. ^ gh:smw:1983 
  5. ^ gh:smw:1985