From e765a89989c42cd51e39ecfe053cf8625837d3ab Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Thu, 21 Mar 2024 10:37:34 -0700 Subject: [PATCH] places: reduce default transaction size Signed-off-by: Varun Patil --- docs/occ-commands.md | 2 +- docs/troubleshooting.md | 2 +- lib/Command/PlacesSetup.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/occ-commands.md b/docs/occ-commands.md index 884170682..f65638233 100644 --- a/docs/occ-commands.md +++ b/docs/occ-commands.md @@ -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` diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 19bf11215..81965f47a 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -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 diff --git a/lib/Command/PlacesSetup.php b/lib/Command/PlacesSetup.php index 459df8531..8d9ba5db9 100644 --- a/lib/Command/PlacesSetup.php +++ b/lib/Command/PlacesSetup.php @@ -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) ; }