$smwgValueLookupFeatures

From Linux Web Expert


Template:Interlanguagelink: en
Configuration parameter details:
Name $smwgValueLookupFeatures
Description Property "Has description" (as page type) with input value "Sets which value lookup features should be served from [[Help:$smwgValueLookupCacheType|value lookup cache" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
Default setting See below
Software Has component::Semantic MediaWiki
Since version
Until version still available
Configuration Cache · Experimental
Keyword caching · object cache · performance · query performance · query lookup cache · query lookup · experimental


__NOBREADCRUMBLINKS__

$smwgValueLookupFeatures is a configuration parameter that sets which value lookup features should be served from value lookup cache to allow for a more fine grained tuning depending on the size available for the cache of the different "ValueLookupStore" interfaces. The configuration parameter was introduced in Semantic MediaWiki 2.3.0Released on an unknown date unknown versions of MediaWiki1 and removed in Semantic MediaWiki 3.0.2Released on an unknown date unknown versions of MediaWiki2 since it has not shown the expected improvements. Instead the internal prefetch lookup feature will be used.3

This configuration parameter only takes effect if the value lookup cache was enabled.

Default setting

$smwgValueLookupFeatures => SMW_VL_SD | SMW_VL_PL | SMW_VL_PV | SMW_VL_PS;

This means that the value lookup is always done from the defined value lookup cache backend for all features.

Available options

  • SMW_VL_SD – corresponds to "Store::getSemanticData"
  • SMW_VL_PL – corresponds to "Store::getProperties"
  • SMW_VL_PV – corresponds to "Store::getPropertyValues"
  • SMW_VL_PS – corresponds to "Store::getPropertySubjects" (mainly involved when generating queries)

Changing the default setting

To modify the setting to this configuration parameter, add one of the following lines to your "LocalSettings.php" file after the enableSemantics() call:

Removing the "getSemanticData" feature
$smwgValueLookupFeatures = SMW_VL_PL | SMW_VL_PV | SMW_VL_PS;

or alternatively remove the feature flag from the existing definition of the configuration parameter like e.g.

$smwgValueLookupFeatures = ( $smwgValueLookupFeatures & ~SMW_VL_SD );
Please use parentheses4 when combining different bit-operations to avoid a possible mismatch.
This is the recommended setting for wikis with a high editing activity.
Disable all value lookup features
$smwgValueLookupFeatures = 0;
If a feature is disabled then a connection is always established to the standard data store/backend.

See also

Caching in general
#scite could not render a citation text for reference "gh:smw:1116" because type "issue" was not assigned to a template.

References

  1. ^ gh:smw:1116 
  2. ^ gh:smw:3808 
  3. ^ gh:smw:3722 
  4. ^  Bitwise Operators to use parentheses to ensure the desired precedence ...