Maintenance script "update­Entity­Count­Map.php"

From semantic-mediawiki.org
Maintenance script "update­Entity­Count­Map.php"Maintenance script "updateEntityCountMap.php" example (no parameter)
updateEntityCountMap.php
Allows to do mass populating of database field "smw_countmap" when initially upgrading to Semantic MediaWiki 3.2.0 and later
Further Information
Provided by: Semantic MediaWiki
Added: 3.2.0
Removed: still in use
Location (path): ./extensions/SemanticMediaWiki/maintenance/
Table of Contents

The "updateEntityCountMap.php" maintenance script allows to do mass populating of database field "smw_countmap" in the "smw_object_aux" database table when initially upgrading to Semantic MediaWiki 3.2.0Released on 7 September 2020 and compatible with MW 1.31.0 - 1.35.x. or later and only has to be run once. As soon as you have successfully upgraded it will no longer be necessary to use it. The maintenance script was introduced in Semantic MediaWiki 3.2.0Released on 7 September 2020 and compatible with MW 1.31.0 - 1.35.x..1

Note[edit]

During an upgrade to Semantic MediaWiki 3.2.0Released on 7 September 2020 and compatible with MW 1.31.0 - 1.35.x. and later the newly created database field "smw_countmap" in the "smw_object_aux" database table initially needs to be populated with data. However due to the sheer size of the "smw_object_aux" database table the update of database field "smw_countmap" could hog resources making maintenance script "update.php" (MediaWiki.org) or alternatively maintenance script "setupStore.php"Allows to set up the data backend/store run for a considerable time. To mitigate this the initial population using this maintenance script is run in a second step during the upgrade.

The need for running this maintenance script is visibly displayed by an error message on every page of the wiki informing that the wiki's system administrator still has to run the script to complete the upgrade. Once this maintenance script was run as a follow up to "update.php" or alternatively "setupStore.php" the will no longer appear and the upgrade of the software was completed.

Usage[edit]

php extensions/SemanticMediaWiki/maintenance/updateEntityCountMap.php

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.

This script does not provide any script specific parameters.

Example[edit]

See also[edit]

References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:4613