$smwgQFilterDuplicates
Configuration parameter details: | |||
Name | $smwgQFilterDuplicates | ||
Description | Sets whether duplicate query conditions should be removed from computing query results | ||
Default setting | false |
||
(Other) available settings |
|
||
Software | Semantic MediaWiki | ||
Since version | |||
Until version | still available | ||
Configuration | Query settings · Inline queries · Experimental | ||
Keyword | inline queries · queries · query performance · performance · experimental |
$smwgQFilterDuplicates
is a configuration parameter that sets whether duplicate query conditions (segments) should be removed from computing query results. Thus the computational effort for conditions (segments) that represent that same query signature is being eliminated. The impact of this optimization is currently unknown. The configuration parameter was introduced in Semantic MediaWiki 2.5.0Released on 14 March 2017 and compatible with MW 1.23.0 - 1.29.x..1
The idea behind this configuration parameter is to filter some query segments (the part that represents individual SQL statements of a query, i.e. query conditions) that can be duplicate and would create an additional temp table which in return would lengthen the time the SQL engine needs to answer the query. If enabled Semantic MediaWiki tries to match the fingerprint of a description and replaces the reference if matched before the "QueryEngine" becomes aware of the segments.
Default setting[edit]
$smwgQFilterDuplicates = false;
This means that duplicate query segments are not being removed from computing query results.
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:
- Enable duplicate query conditions being removed from computing query results
$smwgQFilterDuplicates = true;
This means that duplicate query segments are being removed from computing query results.
See also[edit]
- Help page on speeding up Semantic MediaWiki
- Help page on query result caching
- Help page on configuration parameter
$smwgQueryResultCacheType
Sets whether the query result cache may be used
References
- ^ Semantic MediaWiki: GitHub pull request gh:smw:2176