Manual:runBatchedQuery.php
Appearance
| Arquivo do MediaWiki: runBatchedQuery.php | |
|---|---|
| Localização: | maintenance/ |
| Código-fonte: | master • 1.45.1 • 1.44.3 • 1.43.6 |
| Classes: | BatchedQueryRunner |
Detalhes
O arquivo runBatchedQuery.php é um script de manutenção para executar consultas a banco de dados em lotes e aguardar por escravos. This is used on large wikis to prevent excessive replication lag when executing large write queries.
Options
| Option | Description | Required | Default value |
|---|---|---|---|
| --table | Table name | Required | |
| --set | SET clause | Required | |
| --key | Column name, the values of which are unique | Required | |
| --where | WHERE clause | Optional | |
| --batch-size | Batch size | Optional | 1000 |
| --db | Database name, or omit to use the current wiki. | Optional | current wiki db |
Usage
php maintenance/run.php runBatchedQuery --table tableName --key columnName --set newValue [ --where| --batch-size| --db ]
No MediaWiki versão 1.43.6 e anteriores, você deve invocar os scripts de manutenção usando
php maintenance/scriptName.php em vez de php maintenance/run.php scriptName.