Help:Query profiler



Profiling query data (or more precise profiling query meta data) was initially introduced as part of in an effort to allow to track individual queries. The query data container is specified as a subobject stored with that represents meta information about ,   and  CiteRef::gh:smw:1719 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.0CiteRef::gh:smw:30 - disabled by default)
 * Query parameters (since Semantic MediaWiki 2.5.0CiteRef::gh:smw:2270 - disabled by default)
 * Query scode (status code) (since Semantic MediaWiki 3.0.0CiteRef::gh:smw:2673 - enabled by default)

The subobject stored with 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.