Manual:RunBatchedQuery.php/ja

Category:MediaWiki code/ja#RunBatchedQuery.php

詳細

runBatchedQuery.php file is a maintenance script to run a database query in batches and wait for replica DBs. This is used on large wikis to prevent excessive replication lag when executing large write queries.

オプション

オプション 説明 必須かどうか 既定値
--tableTable name必須
--setSET clause必須
--keyColumn name, the values of which are unique必須
--whereWHERE clause省略可能
--batch-sizeBatch size省略可能1000
--dbDatabase name, or omit to use the current wiki.省略可能current wiki db

使用法

php maintenance/run.php runBatchedQuery --table tableName --key columnName --set newValue [ --where| --batch-size| --db ]
MediaWiki バージョン 1.39.12 以前では、メンテナンス スクリプトを php maintenance/run.php scriptName ではなく php maintenance/scriptName.php を使用して実行する必要があります。

関連項目

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