Manual:runBatchedQuery.php
MediaWiki ファイル: runBatchedQuery.php | |
---|---|
場所: | maintenance/ |
ソース コード: | master • 1.43.1 • 1.42.6 • 1.39.12 |
クラス: | BatchedQueryRunner |
詳細
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.
オプション
オプション | 説明 | 必須かどうか | 既定値 |
---|---|---|---|
--table | Table name | 必須 | |
--set | SET clause | 必須 | |
--key | Column name, the values of which are unique | 必須 | |
--where | WHERE clause | 省略可能 | |
--batch-size | Batch size | 省略可能 | 1000 |
--db | Database 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
を使用して実行する必要があります。