Status: | effective |
Progress: | 100% |
Version: | 3.2.0+ |
Maintenance script "removeDuplicateEntities.php"
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
Usage[edit]
php removeDuplicateEntities.php [--s|--report-runtime|--with-maintenance-log]
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
Note: If you are using this parameter make sure that MediaWiki's configuration parameter |
Examples[edit]
See also[edit]
- Help page on duplicate entities
References
- ^ Semantic MediaWiki: GitHub pull request gh:smw:2932
- ^ Semantic MediaWiki: GitHub pull request gh:smw:4551
- a b Semantic MediaWiki: GitHub pull request gh:smw:4151
- ^ Semantic MediaWiki: GitHub issue gh:smw:1983
- ^ Semantic MediaWiki: GitHub pull request gh:smw:1985