Status: | effective |
Progress: | 100% |
Version: | 3.0.0+ |
Configuration parameter "$smwgExperimentalFeatures"
Configuration parameter details: | |
Name | $smwgExperimentalFeatures |
Description | Sets experimental features |
Default setting | SMW_SQLSTORE_TRAVERSAL_PROPERTY_LOOKUP |
Software | Semantic MediaWiki |
Since version | |
Until version | still available |
Configuration | Query performance · Store settings · Miscellaneous |
Keyword | query features · query performance · store setup · store · mysql · postgresql |
$smwgExperimentalFeatures
is a configuration parameter to enable features 12 that are considered stable but for any unforeseen behaviour, the feature can be disabled to return to a previous working state avoiding the need for hot-patching a system. The configuration parameter was introduced in Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x..
Default setting[edit]
$smwgExperimentalFeatures = SMW_SQLSTORE_TRAVERSAL_PROPERTY_LOOKUP;
This means that improved entity lookup specific features are used addressing the "Store::getInProperties
" performance triggering a significant improvement in query execution time by extending the "INNER JOIN "with a subquery to pre-select and filter possible matches before being materialized.
Available options[edit]
SMW_SQLSTORE_TRAVERSAL_PROPERTY_LOOKUP
– Sets that a new query form for selecting incoming properties is being used, this flag1 It is specific to relational data stores, i.e. MySQL and PostgreSQL.
Changing the default setting[edit]
To modify the setting to this configuration parameter, add one of the following lines to your "LocalSettings.php" file after the enableSemantics()
call:
- Disable entity specific lookup features
$smwgExperimentalFeatures = '';
or alternatively
$smwgExperimentalFeatures = false;

References
- a b Semantic MediaWiki: GitHub pull request gh:smw:2461
- ^ Semantic MediaWiki: GitHub pull request gh:smw:2936