Skip to content

Commit ff63fc1

Browse files
committed
docs: improve backup
1 parent cb0f112 commit ff63fc1

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

content/docs/change-database/rollback-data-changes.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ You can manually delete the data in `bbdataarchive` database/schema.
2525

2626
## Supported Operations
2727

28-
We are working on removing more limitations preventing backup and 1-click rollback.
28+
We are working on enabling backup and 1-click rollback for more SQL statements.
2929

3030
### Enhanced experience
3131

@@ -35,13 +35,17 @@ Applicable to `MySQL`.
3535

3636
</HintBlock>
3737

38-
Prior backup is feasible when meeting **any** of the following conditions:
38+
Prior backup is feasible when meeting **all** of the following conditions:
3939

40-
1. The SQL size is less than 2M.
40+
- The SQL statement size is less than 2M.
4141

42-
1-click rollback is feasible when meeting **any** of the following conditions:
42+
- No mixed `UPDATE`/`DELETE` on the same table.
4343

44-
1. The changed table has primary key.
44+
- No mixed DDL/DML.
45+
46+
1-click rollback is feasible when meeting **all** of the following conditions:
47+
48+
- The changed table has primary key.
4549

4650
### Classic experience
4751

@@ -51,10 +55,11 @@ Applicable to `PostgreSQL`, `Oracle`, `SQL Server`.
5155

5256
</HintBlock>
5357

54-
Prior backup is feasible when meeting **any** of the following conditions:
58+
Prior backup is feasible when meeting **all** of the following conditions:
5559

56-
1. No more than 5 statements and every statement is either `UPDATE` or `DELETE`.
57-
1. All statements are `UPDATE` for the same table with `PRIMARY KEY` or `UNIQUE KEY` in `WHERE` clause.
60+
- The SQL statement size is less than 2M.
61+
- No more than 5 statements and every statement is either `UPDATE` or `DELETE`, or all statements are `UPDATE` for the same table with `PRIMARY KEY` or `UNIQUE KEY` in `WHERE` clause.
62+
- No mixed DDL/DML.
5863

5964
## Create backup
6065

0 commit comments

Comments
 (0)