Help:Query restrictions

From Linux Web Expert

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 $smwgQMaxSizeNo description was provided. and $smwgQMaxDepthNo 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 $smwgQExpensiveThresholdDefines the expensive threshold (denotes the ceiling) and $smwgQExpensiveExecutionLimitLimit 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
execution
#scite could not render a citation text for reference "gh:smw:4003" because type "issue" was not assigned to a template.


References

  1. ^ gh:smw:4003