Skip to content

Commit

Permalink
places: reduce default transaction size
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Patil <[email protected]>
  • Loading branch information
pulsejet committed Mar 21, 2024
1 parent 76e0aa9 commit e765a89
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/occ-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Usage:
Options:
-f, --force Ignore existing setup and re-download planet
-r, --recalculate Only recalculate places for existing files
--transaction-size=50 Reduce this value if your database crashes [default: 50]
--transaction-size=10 Reduce this value if your database crashes [default: 10]
```

## `memories:migrate-google-takeout`
Expand Down
2 changes: 1 addition & 1 deletion docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Restart your database server after making this change.
You may encounter this error where MySQL crashes during planet DB insertion. In this case, use a smaller transaction size for insertion.

```bash
occ memories:places-setup --transaction-size=10
occ memories:places-setup --transaction-size=5
```

## Transcoding
Expand Down
2 changes: 1 addition & 1 deletion lib/Command/PlacesSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected function configure(): void
->setDescription('Setup reverse geocoding')
->addOption('force', 'f', InputOption::VALUE_NONE, 'Ignore existing setup and re-download planet')
->addOption('recalculate', 'r', InputOption::VALUE_NONE, 'Only recalculate places for existing files')
->addOption('transaction-size', null, InputOption::VALUE_REQUIRED, 'Reduce this value if your database crashes', 50)
->addOption('transaction-size', null, InputOption::VALUE_REQUIRED, 'Reduce this value if your database crashes', 10)
;
}

Expand Down

0 comments on commit e765a89

Please sign in to comment.