Manual:runBatchedQuery.php
Appearance
| MediaWiki ファイル: runBatchedQuery.php | |
|---|---|
| 場所: | maintenance/ |
| ソース コード: | master • 1.46.0 • 1.45.4 • 1.43.9 |
| クラス: | 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 バージョン MediaWiki 1.39 以前では、メンテナンス スクリプトを
php maintenance/run.php スクリプト名 ではなく php maintenance/スクリプト名.php を使用して実行する必要があります。