Wikibase
MediaWiki Wikibase extension
|
Utility class for rebuilding the wb_property_info table. More...
Public Member Functions | |
__construct (PropertyInfoTable $propertyInfoTable, PropertyLookup $propertyLookup, PropertyInfoBuilder $propertyInfoBuilder, EntityIdComposer $entityIdComposer, EntityNamespaceLookup $entityNamespaceLookup) | |
setRebuildAll ( $all) | |
setBatchSize ( $batchSize) | |
setReporter (MessageReporter $reporter) | |
Sets the reporter to use for reporting progress. | |
setUseTransactions ( $useTransactions) | |
Enables or disables transactions. | |
rebuildPropertyInfo () | |
Rebuild the property info entries. | |
Private Member Functions | |
updatePropertyInfo (PropertyId $id) | |
Updates the property info entry for the given property. | |
reportMessage ( $msg) | |
Private Attributes | |
$propertyInfoTable | |
$propertyLookup | |
$propertyInfoBuilder | |
$entityIdComposer | |
$entityNamespaceLookup | |
$reporter = null | |
$useTransactions = true | |
$shouldUpdateAllEntities = false | |
$batchSize = 100 | |
Utility class for rebuilding the wb_property_info table.
Wikibase\Repo\Store\Sql\PropertyInfoTableBuilder::__construct | ( | PropertyInfoTable | $propertyInfoTable, |
PropertyLookup | $propertyLookup, | ||
PropertyInfoBuilder | $propertyInfoBuilder, | ||
EntityIdComposer | $entityIdComposer, | ||
EntityNamespaceLookup | $entityNamespaceLookup | ||
) |
Wikibase\Repo\Store\Sql\PropertyInfoTableBuilder::rebuildPropertyInfo | ( | ) |
Rebuild the property info entries.
Use the rebuildPropertyInfo.php maintenance script to invoke this from the command line.
Database updates a batched into multiple transactions. Do not call this method within an (explicit) database transaction.
|
private |
string | $msg |
Wikibase\Repo\Store\Sql\PropertyInfoTableBuilder::setBatchSize | ( | $batchSize | ) |
int | $batchSize |
Wikibase\Repo\Store\Sql\PropertyInfoTableBuilder::setRebuildAll | ( | $all | ) |
bool | $all |
Wikibase\Repo\Store\Sql\PropertyInfoTableBuilder::setReporter | ( | MessageReporter | $reporter | ) |
Sets the reporter to use for reporting progress.
MessageReporter | $reporter |
Wikibase\Repo\Store\Sql\PropertyInfoTableBuilder::setUseTransactions | ( | $useTransactions | ) |
Enables or disables transactions.
The only good reason to disable transactions is to be able to run the rebuild inside an already existing transaction.
bool | $useTransactions |
|
private |
Updates the property info entry for the given property.
The property is loaded in full using the EntityLookup provide to the constructor.
RuntimeException |
PropertyId | $id | the Property to process |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |