Jump to content

Příručka:Databázová tabulka profiling

From mediawiki.org
This page is a translated version of the page Manual:Profiling table and the translation is 100% complete.
Manuál:Obsah MediaWiki schéma databáze Tabulka profiling

Tabulka profiling byla použita k ukládání dat souvisejících s profilováním . Tato tabulka neexistuje, pokud není vytvořena, např. nastavením $wgProfiler['output'] = 'db' ve svých StartProfiler.php a spuštěním maintenance/update.php.

Verze MediaWiki:
1.34

Tabulka byla odstraněna v MediaWiki 1.35 gerrit:545308.

Pole

pf_count

Počet událostí (celé číslo).

pf_time

Časový součet (milisekundy).

pf_memory

Součet paměti (KB).

pf_name

Název metody (např. Title::getNamespace).

pf_server

Hostitel (např. lucy-HP-Compaq-Elite-8300-SF).

Přehled změn ve schématu tabulky

Verze MediaWiki:
1.13 – 1.34

DESCRIBE profiling;

+-----------+--------------+------+-----+---------+-------+
| Field     | Type         | Null | Key | Default | Extra |
+-----------+--------------+------+-----+---------+-------+
| pf_count  | int(11)      | NO   |     | 0       |       |
| pf_time   | float        | NO   |     | 0       |       |
| pf_memory | float        | NO   |     | 0       |       |
| pf_name   | varchar(255) | NO   | PRI |         |       |
| pf_server | varchar(30)  | NO   | PRI |         |       |
+-----------+--------------+------+-----+---------+-------+
Verze MediaWiki:
1.7 – 1.12

DESCRIBE profiling;

+-----------+--------------+------+-----+---------+-------+
| Field     | Type         | Null | Key | Default | Extra |
+-----------+--------------+------+-----+---------+-------+
| pf_count  | int(11)      | NO   |     | 0       |       |
| pf_time   | float        | NO   |     | 0       |       |
| pf_name   | varchar(255) | NO   | PRI |         |       |
| pf_server | varchar(30)  | NO   | PRI |         |       |
+-----------+--------------+------+-----+---------+-------+
Verze MediaWiki:
1.3 – 1.6

DESCRIBE profiling;

+----------+--------------+------+-----+---------+-------+
| Field    | Type         | Null | Key | Default | Extra |
+----------+--------------+------+-----+---------+-------+
| pf_count | int(11)      | NO   |     | 0       |       |
| pf_time  | float        | NO   |     | 0       |       |
| pf_name  | varchar(255) | NO   | PRI |         |       |
+----------+--------------+------+-----+---------+-------+

Indexy

Verze MediaWiki:
1.7 – 1.34

SHOW INDEX IN profiling;

+-----------+------------+----------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| Table     | Non_unique | Key_name       | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
+-----------+------------+----------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| profiling |          0 | pf_name_server |            1 | pf_name     | NULL      |        NULL |     NULL | NULL   |      | HASH       |         |               |
| profiling |          0 | pf_name_server |            2 | pf_server   | NULL      |           0 |     NULL | NULL   |      | HASH       |         |               |
+-----------+------------+----------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+

Externí odkazy