Skip to content

Commit f630c48

Browse files
committed
update README for MySQL plugin
1 parent c137948 commit f630c48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

embulk-output-mysql/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ MySQL output plugin for Embulk loads records to MySQL.
5353
* Transactional: Yes.
5454
* Resumable: No.
5555
* **replace**:
56-
* Behavior: This mode writes rows to an intermediate table first. If all those tasks run correctly, drops the target table and alters the name of the intermediate table into the target table name.
57-
* Transactional: No. If fails, the target table could be dropped (because MySQL can't rollback DDL).
56+
* Behavior: This mode writes rows to an intermediate table first. If all those tasks run correctly, swaps the intermediate table with target table by altering the table names atomically, and then drops the intermediate table.
57+
* Transactional: No. If fails, the intermediate table could remain (because MySQL can't rollback DDL)
5858
* Resumable: No.
5959
* **merge**:
6060
* Behavior: This mode writes rows to some intermediate tables first. If all those tasks run correctly, runs `INSERT INTO <target_table> SELECT * FROM <intermediate_table_1> UNION ALL SELECT * FROM <intermediate_table_2> UNION ALL ... ON DUPLICATE KEY UPDATE ...` query. Namely, if primary keys of a record in the intermediate tables already exist in the target table, the target record is updated by the intermediate record, otherwise the intermediate record is inserted. If the target table doesn't exist, it is created automatically.

0 commit comments

Comments
 (0)