Kézikönyv:querycache táblázat

This page is a translated version of the page Manual:Querycache table and the translation is 85% complete.
Kézikönyv:Tartalom MediaWiki-adatbázis elrendezése querycache táblázat
MediaWiki-verzió:
1.3

The querycache table is used for caching expensive grouped queries. This table is populated with the updateSpecialPages.php maintenance script.

Mezők

qc_type

Kulcsnév, általában a speciális lap alapneve.

qc_value

Valamilyen tárolt érték. Méretek, mennyiségek…

qc_namespace

A cél névtere. A qc_title változóval együtt használatos.

qc_title

A cél címe. A qc_namespace változóval együtt használatos.

Séma összefoglalója

MediaWiki-verzió:
1.11

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-verzió:
1.10

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     | char(255) binary    | NO   |     | NULL    |       |
+--------------+---------------------+------+-----+---------+-------+
MediaWiki-verziók:
1.5 – 1.9

DESCRIBE querycache;

+--------------+---------------------+------+-----+---------+-------+
| 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) binary    | NO   |     | NULL    |       |
+--------------+---------------------+------+-----+---------+-------+
MediaWiki-verziók:
1.3 – 1.4

DESCRIBE querycache;

+--------------+---------------------+------+-----+---------+-------+
| Field        | Type                | Null | Key | Default | Extra |
+--------------+---------------------+------+-----+---------+-------+
| qc_type      | char(32)            | NO   | MUL | NULL    |       |
| qc_value     | int(5) unsigned     | NO   |     | 0       |       |
| qc_namespace | tinyint(2) unsigned | NO   |     | 0       |       |
| qc_title     | char(255) binary    | NO   |     | NULL    |       |
+--------------+---------------------+------+-----+---------+-------+

Indexek

MediaWiki-verzió:
1.5

SHOW INDEX IN querycache;

+------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| Table      | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
+------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| querycache |          1 | qc_type  |            1 | qc_type     | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| querycache |          1 | qc_type  |            2 | qc_value    | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
+------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+