Manual:querycache table

From MediaWiki.org
Jump to: navigation, search
Manual:Contents MediaWiki database layout querycache table


Contents


The querycache table is used for caching expensive grouped queries.

[edit] Fields

[edit] qc_type

A key name, generally the base name of the special page.

[edit] gc_value

Some sort of stored value. Sizes, counts...

[edit] gc_namespace

Target namespace; used in conjunction with gc_title.

[edit] gc_title

Target title; used in conjunction with gc_namespace.

[edit] Versions

MediaWiki versions: 1.19 – 1.20
mysql> describe querycache;
+--------------+------------------+------+-----+---------+-------+
| Field        | Type             | Null | Key | Default | Extra |
+--------------+------------------+------+-----+---------+-------+
| qc_type      | varbinary(32)    | NO   | MUL | NULL    |       |
| qc_value     | int(10) unsigned | NO   |     | 0       |       |
| qc_namespace | int(11)          | NO   |     | 0       |       |
| qc_title     | varbinary(255)   | NO   |     |         |       |
+--------------+------------------+------+-----+---------+-------+


MediaWiki version: 1.18

describe querycache;

+--------------+----------------------+------+-----+---------+-------+
| Field        | Type                 | Null | Key | Default | Extra |
+--------------+----------------------+------+-----+---------+-------+
| qc_type      | varbinary(32)        |      | MUL |         |       |
| qc_value     | int(10) unsigned     |      |     | 0       |       |
| qc_namespace | tinyint(11) unsigned |      |     | 0       |       |
| qc_title     | varchar(255)         |      |     |         |       |
+--------------+----------------------+------+-----+---------+-------+

describe querycache; in MediaWiki 1.8 gives the following:

MediaWiki version: 1.8
+--------------+-----------------+------+-----+---------+-------+
| Field        | Type            | Null | Key | Default | Extra |
+--------------+-----------------+------+-----+---------+-------+
| qc_type      | char(32)        | NO   | MUL | NULL    |       |
| qc_value     | int(5) unsigned | NO   |     | 0       |       |
| qc_namespace | int(11)         | NO   |     | 0       |       |
| qc_title     | char(255)       | NO   |     | NULL    |       |
+--------------+-----------------+------+-----+---------+-------+


MediaWiki version: 1.9
+--------------+-----------------+------+-----+---------+-------+
| Field        | Type            | Null | Key | Default | Extra |
+--------------+-----------------+------+-----+---------+-------+
| qc_type      | char(32)        | NO   | MUL | NULL    |       |
| qc_value     | int(5) unsigned | NO   |     | 0       |       |
| qc_namespace | int(11)         | NO   |     | 0       |       |
| qc_title     | char(255)       | NO   |     | NULL    |       |
+--------------+-----------------+------+-----+---------+-------+


MediaWiki version: 1.11
+--------------+------------------+------+-----+---------+-------+
| Field        | Type             | Null | Key | Default | Extra |
+--------------+------------------+------+-----+---------+-------+
| qc_type      | varbinary(32)    | NO   | MUL | NULL    |       |
| qc_value     | int(10) unsigned | NO   |     | 0       |       |
| qc_namespace | int(11)          | NO   |     | 0       |       |
| qc_title     | varchar(255)     | NO   |     | NULL    |       |
+--------------+------------------+------+-----+---------+-------+


MediaWiki version: 1.12
+--------------+-----------------+------+-----+---------+-------+
| Field        | Type            | Null | Key | Default | Extra |
+--------------+-----------------+------+-----+---------+-------+
| qc_type      | char(32)        | NO   | MUL | NULL    |       |
| qc_value     | int(5) unsigned | NO   |     | 0       |       |
| qc_namespace | int(11)         | NO   |     | 0       |       |
| qc_title     | char(255)       | NO   |     | NULL    |       |
+--------------+-----------------+------+-----+---------+-------+
Language: English  • 日本語 • polski