Manual:RunBatchedQuery.php/ko
Appearance
| 미디어위키 파일: runBatchedQuery.php | |
|---|---|
| 위치: | maintenance/ |
| 소스 코드: | master • 1.46.2 • 1.45.6 • 1.43.11 |
| 클래스: | 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.
옵션
| Option | Description | Required? | Default value |
|---|---|---|---|
| --table | Table name | Required | |
| --set | SET clause | Required | |
| --key | Column name, the values of which are unique | Required | |
| --where | WHERE clause | Optional | |
| --batch-size | Batch size | Optional | 1000 |
| --db | Database name, or omit to use the current wiki. | Optional | current wiki db |
사용법
php maintenance/run.php runBatchedQuery --table tableName --key columnName --set newValue [ --where| --batch-size| --db ]
In MediaWiki version 미디어위키 1.39 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php instead of php maintenance/run.php scriptName.