Profiling query data (or more precise profiling query meta data) was initially introduced as part of Semantic MediaWiki 1.8.0Released on 2 December 2012 and compatible with MW 1.17.0 - 1.22.x
(except 1.22.1). in an effort to allow to track individual queries. The query data container is specified as a subobject stored with special property "Has query"Links a page to the subobject created by a query recording its profile that represents meta information about #ask
, #show
and #concept
1 queries.
The following information are collected as part of the profiler subobject:
- Query size (since Semantic MediaWiki 1.8.0 - enabled by default)
- Query depth (since Semantic MediaWiki 1.8.0 - enabled by default)
- Query format (since Semantic MediaWiki 1.8.0 - enabled by default)
- Query string (since Semantic MediaWiki 1.8.0 - enabled by default)
- Query duration (since Semantic MediaWiki 1.9.02 - disabled by default)
- Query parameters (since Semantic MediaWiki 2.5.03 - disabled by default)
- Query scode (status code) (since Semantic MediaWiki 3.0.04 - enabled by default)
The subobject stored with special property "Has query"Links a page to the subobject created by a query recording its profile is generated from an individual query and identifiable by an internal ID such as "_QUERY352c85af2335a1ef9cff0345bd12f0fd". If the content of a query changes so does its internal ID. If however two queries share the same parameters meaning that the queries are equal then only one query profile is maintained for that particular query. Thus both queries will inherit the same query ID.
In case "Query duration" and "Query parameters" and "Query scode (status code)" are enabled (both disabled by default), durations and parameters are stored for each individual query including those with only one profile.
See also[edit]
- Help page on configuration parameter
$smwgQueryProfiler
Sets whether specific monitorable profile data are recorded - Help page on querying for queries
References
- ^ Semantic MediaWiki: GitHub pull request gh:smw:1719
- ^ Semantic MediaWiki: GitHub pull request gh:smw:30
- ^ Semantic MediaWiki: GitHub pull request gh:smw:2270
- ^ Semantic MediaWiki: GitHub pull request gh:smw:2673