Status: | obsolete |
Progress: | 100% |
Version: | 2.3.0 - 3.0.2 |
$smwgValueLookupFeatures
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
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 );
- Disable all value lookup features
$smwgValueLookupFeatures = 0;
See also
- Help page on configuration parameter
$smwgExperimentalFeatures
Sets experimental features - Help page on configuration parameter
$smwgValueLookupCacheType
Sets a separate cache type for the object cache when requesting value lookups from the database - Help page on configuration parameter
$smwgValueLookupCacheLifetime
No description was provided.
- Caching in general
References
- ^ gh:smw:1116
- ^ gh:smw:3808
- ^ gh:smw:3722
- ^ Bitwise Operators to use parentheses to ensure the desired precedence ...