Manual:RunBatchedQuery.php/pt

Category:MediaWiki code/pt#RunBatchedQuery.php

Detalhes

O ficheiro runBatchedQuery.php é um script de manutenção para executar consultas em bancos de dados em lotes e esperar 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 ]
In MediaWiki version 1.39.13 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

See also

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