Skip to content

Commit

Permalink
perf: add --single-transaction flag to the dump command
Browse files Browse the repository at this point in the history
  • Loading branch information
toyi committed May 19, 2024
1 parent e441ef9 commit fe88ba3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/SyncDatabaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ protected function remoteDump(): string
$dump_cmd_base[] = Config::get('sync-database.bin.mysqldump') ?: 'mysqldump';
$dump_cmd_base[] = '--max_allowed_packet=' . $database_config['max_allowed_packet'];
$dump_cmd_base[] = '--no-tablespaces';
$dump_cmd_base[] = '--single-transaction';
$dump_cmd_base[] = '-h ' . $database_config['host'];
$dump_cmd_base[] = '-P ' . $database_config['port'];
$dump_cmd_base[] = '-u ' . $database_config['user'];
Expand Down

0 comments on commit fe88ba3

Please sign in to comment.