Status: | effective |
Progress: | 95% |
Version: | 3.0.0+ |
Help:Query restrictions
This help page provides an overview to query restrictions and how to change them by adapting the respective configuration parameters.
Query size and depth
In case a query returns with a message like "The following $2 query conditions could not be considered due to this wiki's restrictions on query size or depth: $1
." (with $1, $2 being placeholders)1 the following configuration parameters $smwgQMaxSize
No description was provided. and $smwgQMaxDepth
No description was provided. define the restrictions applied before a query is executed:
$smwgQMaxSize
defines the maximum number of conditions in queries$smwgQMaxDepth
defines the maximum property depth of queries (e.g.[[Rel1::<q>[[Rel2::Test]]</q>]]
has depth 2)
Using result format "Debug" (format=debug
) for the respective to output the computed size and depth of query and to analyze the restrictions applied to a query.
Limit query execution
The $smwgQExpensiveThreshold
Defines the expensive threshold (denotes the ceiling) and $smwgQExpensiveExecutionLimit
Limit of expensive#ask/#show parser functions (count all classified #ask/#show parser functions and restricts further use on pages that exceed that limit) configuration parameters can be used to limit the execution of expensive #ask
and #show
queries.
See also
- size and depth
- Help page on inline queries
- Help page on selecting pages (query conditions)
- Help page on subqueries and property chains (property depth)
- {{{1}}} on GitHub
- execution
- Help page on expensive queries
- Help page on speeding up Semantic MediaWiki
- Help page on page loading time
References
- ^ gh:smw:4003