Skip to content

Commit

Permalink
Update reduction-in-locks.md (#355)
Browse files Browse the repository at this point in the history
* Update reduction-in-locks.md

* Update reduction-in-locks.md

* Update reduction-in-locks.md

* Update reduction-in-locks.md
  • Loading branch information
alina-derkach-oaza authored Jan 28, 2025
1 parent b9b4708 commit b026ee3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/reduction-in-locks.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ The `--lock-ddl=REDUCED` option features are as follows:
| 400 GB | 3888 sec | 3.948 sec | 984.80 |
| 500 GB | 4896 sec | 4.065 sec | 1204.43 |
Using `--lock-ddl=REDUCED` leads to a dramatic reduction in backup time compared to `--lock-ddl=ON`, especially with larger data sizes.
Using `--lock-ddl=REDUCED` significantly reduces the time DDL operations are blocked during backup, although the total backup time remains unchanged. The data size particularly impacts the lock duration - larger databases benefit more from this reduced locking approach.

* Track changes with redo logs: Redo logs record all file-level changes, ensuring data consistency during the backup process.
* Handle DDL operations: The backup process generates metadata files to account for any DDL operations that occur while the backup is in progress.
* Ensure consistency: The `--prepare` step processes generated metadata files and uses redo and undo logs to create a consistent database state.
* Reduce replication lag: When you take a backup with `--safe-slave-backup` and `--lock-ddl=reduced` enabled, the SQL thread on the replica server is stopped for less time, reducing replication lag.

### Limitations

Expand Down

0 comments on commit b026ee3

Please sign in to comment.