Manual:RunBatchedQuery.php/pl
Appearance
| Plik MediaWiki: runBatchedQuery.php | |
|---|---|
| Lokalizacja: | maintenance/ |
| Kod źródłowy: | master • 1.46.0 • 1.45.4 • 1.43.9 |
| Klasy: | BatchedQueryRunner |
Details
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.
Opcje
| Opcja | Opis | Wymagane | Domyślna wartość |
|---|---|---|---|
| --table | Table name | Wymagane | |
| --set | SET clause | Wymagane | |
| --key | Column name, the values of which are unique | Wymagane | |
| --where | WHERE clause | Optional | |
| --batch-size | Batch size | Optional | 1000 |
| --db | Database name, or omit to use the current wiki. | Optional | current wiki db |
Użycie
php maintenance/run.php runBatchedQuery --table tableName --key columnName --set newValue [ --where| --batch-size| --db ]
W wersji MediaWiki MediaWiki 1.39 i we wcześniejszych musisz wywoływać skrypty konserwacyjne poprzez
php maintenance/nazwaSkryptu.php zamiast php maintenance/run.php nazwaSkryptu.