Manual:job/fr table

From Linux Web Expert


Manuel:Contenu <translate> MediaWiki database layout</translate> <translate> <tvar name=1>job/fr</tvar> table</translate>
Version de MediaWiki :
<translate> ≥</translate> 1.6

La table job contient une liste de tâches en attente. Sert uniquement si $wgJobTypeConf utilise la classe JobQueueDB.

Champs

job_id

Clé primaire.

job_cmd

Nom de commande, limité à 60 caractères pour empêcher le débordement de la longueur de la clé. Noms de commandes correspondant aux clés de $wgJobClasses .

job_namespace

Espace de noms sur lequel agir. Doit être à 0 si la commande n'est pas effective sur un titre. Utilisé avec job_title.

job_title

Titre sur lequel agir. Doit être vide si la commande n'est pas effective sur un titre. Utilisé avec job_namespace.

job_timestamp

Version de MediaWiki :
<translate> ≥</translate> 1.19

Horodatage au moment où la tâche a été insérée. NULL pour les tâches ajoutées avant l'addition de l'horodatage.

job_params

Le reste des paramètres de la commande. Enregistré en tant que tableau sérialisé PHP, ou une chaîne vide dans le cas où il n'y a pas de paramètres.

job_random

Version de MediaWiki :
<translate> ≥</translate> 1.21

Aléatoire, pas unique, numéro utilisé pour l'acquisision des tâches concurrentes.

job_attempts

Version de MediaWiki :
<translate> ≥</translate> 1.21

Nombre de fois où cette tâche a été suspendue.

job_token

Version de MediaWiki :
<translate> ≥</translate> 1.21

Champ qui contient les verrous des processus sur les lignes via les UUIDs des processus. Les tâches non suspendues ont ce champ initialisé avec une chaîne vide.

job_token_timestamp

Version de MediaWiki :
<translate> ≥</translate> 1.21

Horodatage du moment où la tâche a été suspendue. Les tâches non suspendues ont ce champ à nul.

job_sha1

Version de MediaWiki :
<translate> ≥</translate> 1.21

SHA1 en base 36 des paramètres de tâche, concerne la détection des doublons.

Résumé du schéma

<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.36
<translate> MediaWiki version:</translate>

DESCRIBE job/fr;

+---------------------+------------------+------+-----+---------+----------------+
| Field               | Type             | Null | Key | Default | Extra          |
+---------------------+------------------+------+-----+---------+----------------+
| job_id              | int(10) unsigned | NO   | PRI | NULL    | auto_increment |
| job_cmd             | varbinary(60)    | NO   | MUL |         |                |
| job_namespace       | int(11)          | NO   |     | NULL    |                |
| job_title           | varbinary(255)   | NO   |     | NULL    |                |
| job_timestamp       | binary(14)       | YES  | MUL | NULL    |                |
| job_params          | mediumblob       | NO   |     | NULL    |                |
| job_random          | int(10) unsigned | NO   |     | 0       |                |
| job_attempts        | int(10) unsigned | NO   |     | 0       |                |
| job_token           | varbinary(32)    | NO   |     |         |                |
| job_token_timestamp | binary(14)       | YES  |     | NULL    |                |
| job_sha1            | varbinary(32)    | NO   | MUL |         |                |
+---------------------+------------------+------+-----+---------+----------------+
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.35</tvar> is unsupported version</translate>">
1.33 – 1.35
<translate> MediaWiki versions:</translate>

DESCRIBE job/fr;

+---------------------+------------------+------+-----+---------+----------------+
| Field               | Type             | Null | Key | Default | Extra          |
+---------------------+------------------+------+-----+---------+----------------+
| job_id              | int(10) unsigned | NO   | PRI | NULL    | auto_increment |
| job_cmd             | varbinary(60)    | NO   | MUL |         |                |
| job_namespace       | int(11)          | NO   |     | NULL    |                |
| job_title           | varbinary(255)   | NO   |     | NULL    |                |
| job_timestamp       | varbinary(14)    | YES  | MUL | NULL    |                |
| job_params          | mediumblob       | NO   |     | NULL    |                |
| job_random          | int(10) unsigned | NO   |     | 0       |                |
| job_attempts        | int(10) unsigned | NO   |     | 0       |                |
| job_token           | varbinary(32)    | NO   |     |         |                |
| job_token_timestamp | varbinary(14)    | YES  |     | NULL    |                |
| job_sha1            | varbinary(32)    | NO   | MUL |         |                |
+---------------------+------------------+------+-----+---------+----------------+
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.32</tvar> is unsupported version</translate>">
1.21 – 1.32
<translate> MediaWiki versions:</translate>

DESCRIBE job/fr;

+---------------------+------------------+------+-----+---------+----------------+
| Field               | Type             | Null | Key | Default | Extra          |
+---------------------+------------------+------+-----+---------+----------------+
| job_id              | int(10) unsigned | NO   | PRI | NULL    | auto_increment |
| job_cmd             | varbinary(60)    | NO   | MUL |         |                |
| job_namespace       | int(11)          | NO   |     | NULL    |                |
| job_title           | varbinary(255)   | NO   |     | NULL    |                |
| job_timestamp       | varbinary(14)    | YES  | MUL | NULL    |                |
| job_params          | blob             | NO   |     | NULL    |                |
| job_random          | int(10) unsigned | NO   |     | 0       |                |
| job_attempts        | int(10) unsigned | NO   |     | 0       |                |
| job_token           | varbinary(32)    | NO   |     |         |                |
| job_token_timestamp | varbinary(14)    | YES  |     | NULL    |                |
| job_sha1            | varbinary(32)    | NO   | MUL |         |                |
+---------------------+------------------+------+-----+---------+----------------+
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.20</tvar> is unsupported version</translate>">
1.19 – 1.20
<translate> MediaWiki versions:</translate>

DESCRIBE job/fr;

+---------------+---------------------+------+-----+---------+----------------+
| Field         | Type                | Null | Key | Default | Extra          |
+---------------+---------------------+------+-----+---------+----------------+
| job_id        | int(10) unsigned    | NO   | PRI | NULL    | AUTO_INCREMENT |
| job_cmd       | varbinary(60)       | NO   | MUL | NULL    |                |
| job_namespace | int(11)             | NO   |     | NULL    |                |
| job_title     | varchar(255) binary | NO   |     | NULL    |                |
| job_timestamp | varbinary(14)       | YES  | MUL | NULL    |                |
| job_params    | blob                | NO   |     | NULL    |                |
+---------------+---------------------+------+-----+---------+----------------+
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.18</tvar> is unsupported version</translate>">
1.10 – 1.18
<translate> MediaWiki versions:</translate>

DESCRIBE job/fr;

+---------------+---------------------+------+-----+---------+----------------+
| Field         | Type                | Null | Key | Default | Extra          |
+---------------+---------------------+------+-----+---------+----------------+
| job_id        | int(10) unsigned    | NO   | PRI | NULL    | AUTO_INCREMENT |
| job_cmd       | varbinary(60)       | NO   | MUL | NULL    |                |
| job_namespace | int(11)             | NO   |     | NULL    |                |
| job_title     | varchar(255) binary | NO   |     | NULL    |                |
| job_params    | blob                | NO   |     | NULL    |                |
+---------------+---------------------+------+-----+---------+----------------+
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.9</tvar> is unsupported version</translate>">
1.6 – 1.9
<translate> MediaWiki versions:</translate>

DESCRIBE job/fr;

+---------------+---------------------+------+-----+---------+----------------+
| Field         | Type                | Null | Key | Default | Extra          |
+---------------+---------------------+------+-----+---------+----------------+
| job_id        | int(9) unsigned     | NO   | PRI | NULL    | AUTO_INCREMENT |
| job_cmd       | varchar(255)        | NO   | MUL | NULL    |                |
| job_namespace | int(11)             | NO   |     | NULL    |                |
| job_title     | varchar(255) binary | NO   |     | NULL    |                |
| job_params    | blob                | NO   |     | NULL    |                |
+---------------+---------------------+------+-----+---------+----------------+

Les index

Version de MediaWiki :
<translate> ≥</translate> 1.21

SHOW INDEX IN job/fr;

+-------+------------+------------------+--------------+---------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| Table | Non_unique | Key_name         | Seq_in_index | Column_name   | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
+-------+------------+------------------+--------------+---------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| job   |          0 | PRIMARY          |            1 | job_id        | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| job   |          1 | job_sha1         |            1 | job_sha1      | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| job   |          1 | job_cmd_token    |            1 | job_cmd       | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| job   |          1 | job_cmd_token    |            2 | job_token     | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| job   |          1 | job_cmd_token    |            3 | job_random    | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| job   |          1 | job_cmd_token_id |            1 | job_cmd       | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| job   |          1 | job_cmd_token_id |            2 | job_token     | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| job   |          1 | job_cmd_token_id |            3 | job_id        | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| job   |          1 | job_cmd          |            1 | job_cmd       | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| job   |          1 | job_cmd          |            2 | job_namespace | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| job   |          1 | job_cmd          |            3 | job_title     | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| job   |          1 | job_cmd          |            4 | job_params    | A         |           0 |      128 | NULL   |      | BTREE      |         |               |
| job   |          1 | job_timestamp    |            1 | job_timestamp | A         |           0 |     NULL | NULL   | YES  | BTREE      |         |               |
+-------+------------+------------------+--------------+---------------+-----------+-------------+----------+--------+------+------------+---------+---------------+