$smwgQUpperbound
From semantic-mediawiki.org
Configuration parameter details: | |
Name | $smwgQUpperbound |
Description | Sets the upper bound of the offset used for the maximal number of rows ever printed in an embedded query |
Default setting | 5000 |
Software | Semantic MediaWiki |
Since version | |
Until version | still available |
Configuration | Query settings · inline queries · Query features · Query performance |
Keyword | printouts |
$smwgQUpperbound
is a configuration parameter that sets the upper bound of the offset used for the maximal number of rows ever printed in a single embedded query on a single page. The configuration parameter was introduced in Semantic MediaWiki 2.1.0Released on 19 January 2015 and compatible with MW 1.19.0 - 1.24.x..
If a limit higher that the one for configuration parameter
$smwgQMaxLimit
Sets the maximal number of results ever retrieved by queries and configuration parameter $smwgQMaxInlineLimit
Sets the maximal number of rows ever printed by queries is set with this configuration parameter the setting of these parameters will have to be adjusted accordingly.
Until Semantic MediaWiki 2.5.3Released on 8 July 2017 and compatible with MW 1.23.0 - 1.29.x.1 there was a bug which resulted in embedded queries to fall back to the limit "
100
" if the limit set for it surpassed the limit which was set with this configuration parameter.2. There is still a bug as of Semantic MediaWiki 3.1.0Released on 23 September 2019 and compatible with MW 1.31.0 - 1.33.x. which results in embedded queries to fall back to the value "0
" if the limit set explicitly for the offset parameter surpasses the limit set with this configuration parameter.3
Default setting[edit]
$smwgQUpperbound = 5000;
This means that embedded queries may use "5000" as a maximum value for the offset parameter.
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:
- Increase the maximum limit
$smwgQUpperbound = 10000;
This means that embedded queries may use "10000" as a maximum value for the offset parameter.
See also[edit]
- Help page on configuration parameter
$smwgQMaxLimit
Sets the maximal number of results ever retrieved by queries - Help page on configuration parameter
$smwgQMaxInlineLimit
Sets the maximal number of rows ever printed by queries
References
- ^ Semantic MediaWiki: GitHub pull request gh:smw:2474
- ^ Semantic MediaWiki: GitHub pull request gh:smw:242
- ^ Semantic MediaWiki: GitHub issue gh:smw:4263