Handbuch:runBatchedQuery.php
Appearance
| MediaWiki-Datei: runBatchedQuery.php | |
|---|---|
| Speicherort: | maintenance/ |
| Quellcode: | master • 1.45.1 • 1.44.3 • 1.43.6 |
| Klassen: | BatchedQueryRunner |
Details
Die runBatchedQuery.php Datei ist eine Wartung Skript, um eine Datenbankabfrage in Chargen fahren und warten Sklaven. This is used on large wikis to prevent excessive replication lag when executing large write queries.
Optionen
| Option | Beschreibung | Notwendig | Standardwert |
|---|---|---|---|
| --table | Table name | Notwendig | |
| --set | SET clause | Notwendig | |
| --key | Column name, the values of which are unique | Notwendig | |
| --where | WHERE clause | Optional | |
| --batch-size | Batch size | Optional | 1000 |
| --db | Database name, or omit to use the current wiki. | Optional | current wiki db |
Verwendung
php maintenance/run.php runBatchedQuery --table tableName --key columnName --set newValue [ --where| --batch-size| --db ]
In MediaWiki version 1.43.6 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php instead of php maintenance/run.php scriptName.