Manual:RunBatchedQuery.php/pt-br

Category:MediaWiki code/pt-br#RunBatchedQuery.php

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
--tableTable nameRequired
--setSET clauseRequired
--keyColumn name, the values of which are uniqueRequired
--whereWHERE clauseOptional
--batch-sizeBatch sizeOptional1000
--dbDatabase name, or omit to use the current wiki.Optionalcurrent wiki db

Usage

php maintenance/run.php runBatchedQuery --table tableName --key columnName --set newValue [ --where| --batch-size| --db ]
No MediaWiki versão 1.39.12 e anteriores, você deve invocar os scripts de manutenção usando php maintenance/scriptName.php em vez de php maintenance/run.php scriptName.

See also

Category:Maintenance scripts/pt-br Category:Database maintenance scripts/pt-br
Category:Database maintenance scripts/pt-br Category:Maintenance scripts/pt-br Category:MediaWiki code/pt-br