mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-11-20 11:21:14 +00:00
Add notes about upgrade configuration to upgrade notes
This commit is contained in:
parent
19dd8c13a2
commit
12de990dee
1 changed files with 20 additions and 0 deletions
|
@ -71,6 +71,26 @@ to 0.5 with postgres, rather than upgrading to 0.5 with sled and then making the
|
|||
This process is documented in the
|
||||
[pict-rs readme](https://git.asonix.dog/asonix/pict-rs#upgrading-directly-to-postgres).
|
||||
|
||||
A notable addition in 0.5 is upgrade configuration. Since the migration accesses media from the
|
||||
configured store, increasing the concurrency can be beneficial. By default, pict-rs will attempt to
|
||||
migrate 32 records at a time, but this value can be increased.
|
||||
|
||||
In the configuration file
|
||||
```toml
|
||||
[upgrade]
|
||||
concurrency = 32
|
||||
```
|
||||
|
||||
With environment variables
|
||||
```bash
|
||||
PICTRS__UPGRADE__CONCURRENCY=32
|
||||
```
|
||||
|
||||
On the commandline
|
||||
```bash
|
||||
pict-rs run --upgrade-concurrency 32
|
||||
```
|
||||
|
||||
More information can be found in the
|
||||
[pict-rs 0.4 to 0.5 migration guide](https://git.asonix.dog/asonix/pict-rs#04-to-05-migration-guide).
|
||||
|
||||
|
|
Loading…
Reference in a new issue