|Found errors or typos? Just edit the page or leave a message on the talk page.|
The English language documentation is canonical and most up to date.
Help:Special page "SemanticMediaWiki" - property statistics rebuild
|Property statistics rebuild|
|Allows to rebuild the statistics for property data|
This page describes the property statistics rebuild function accessible via special page "SemanticMediaWiki". It is located in its "Data repair and update" section and allows to rebuild the statistics for property data shown as the property usage count on the property pages.
By default all users who are administrators (user group "sysop") or Semantic MediaWiki administrators (user group "smwadministrator") may use this feature. This feature can be disabled by removing the
SMW_ADM_PSTATS constant from configuration parameter
$smwgAdminFeatures. See the linked help page for information on how this is done.
To initiate the rebuild of the semantic data the button labeled "Schedule statistics rebuild" provided in the "Property statistics rebuild" subsection of the "Data repair and update" section on the "SemanticMediaWiki" special page has to be clicked. After doing so the highlighted system message "A statistics rebuild job has been queued." appears to indicate that the rebuild job has been queued into MediaWiki's job queue.
Once scheduled, the rebuild job takes time varying from wiki to wiki. The more properties are used on the wiki the longer this process will take. Also the number of jobs already existing in the queue prior to initiating this rebuild job has to be taken into account since jobs are treated first in, first out. Thus the job will be served faster if many people use your wiki.
The button labeled "Schedule statistics rebuild" is shown again once the full-text search rebuild job was completed.
The work on the job queue which is governed by MediaWiki is also influenced by it's configuration setting
$wgJobRunRate in conjunction with configuration setting
$wgRunJobsAsync. Alternatively if configuration setting
$wgJobRunRate is set to "
0" a cron job for MediaWiki's maintenance script "runJobs.php" will have to be set up by the wiki's system operator to ensure that the job queue is being worked on in due time. This is the recommended approach though it is preferable in this case to disable the function described on this page and run maintenance script "rebuildPropertyStatistics.php" directly.
- Help page on property usage count
- Help page on maintenance script "rebuildPropertyStatistics.php"
- Help page on configuration parameter