$smwgExperimentalFeatures

From Linux Web Expert


Template:Interlanguagelink: en
Configuration parameter details:
Name $smwgExperimentalFeatures
Description Sets experimental features
Default setting See below
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


__NOBREADCRUMBLINKS__

$smwgExperimentalFeatures is a configuration parameter to set experimental features 1 that are considered stable. However they can be disabled in case any unforeseen behaviour is being observed. The configuration parameter was introduced in Semantic MediaWiki 3.0.0Released on an unknown date unknown versions of MediaWiki. The default setting for this configuration parameter was changed with the introduction of a new option in Semantic MediaWiki 3.1.0Released on an unknown date unknown versions of MediaWiki.23

Default setting

$smwgExperimentalFeatures = SMW_QUERYRESULT_PREFETCH | SMW_SHOWPARSER_USE_CURTAILMENT;

This means that the prefetch query feature42 for resolving query requests is being used. Moreover the parser function #show will directly access the database to request an output for one particular entity.

Available options

The options enabled by default are highlighted bold.
  • SMW_QUERYRESULT_PREFETCH – Sets that the prefetch query feature4 for resolving query requests is being used. This option is specific to relational data stores, i.e. MySQL and PostgreSQL.2
  • SMW_SHOWPARSER_USE_CURTAILMENT – Sets the parser function #show to use a short cut and circumventing the QueryEngine by directly accessing the database since it will always only request an output for one particular entity.3

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:

Disabling all experimental query features

To disable all experimental features just set 0 instead of the constants as shown in the above section on available options:

$smwgExperimentalFeatures = 0;
This setting allows to retain the behavior prior to the introduction of the new experimental feature in case issues arise.

Note: "gh:smw:2461" was removed with "gh:smw:3277" prior to the release of SMW 3.0.0.

#scite could not render a citation text for reference "gh:smw:2461" because type "pullrequest" was not assigned to a template.
#scite could not render a citation text for reference "gh:smw:2936" because type "pullrequest" was not assigned to a template.
#scite could not render a citation text for reference "gh:smw:3277" because type "pullrequest" was not assigned to a template.
#scite could not render a citation text for reference "gh:smw:3722" because type "issue" was not assigned to a template.
#scite could not render a citation text for reference "gh:smw:4063" because type "pullrequest" was not assigned to a template.
#scite could not render a citation text for reference "gh:smw:4078" because type "pullrequest" was not assigned to a template.

References

  1. ^ gh:smw:2936 
  2. a b c gh:smw:4063 
  3. a b gh:smw:4078 
  4. a b gh:smw:3722