Skip to content

Commit

Permalink
tiflash: Update tiflash note of importing data by Lightning (pingcap#…
Browse files Browse the repository at this point in the history
…4516)

* update tiflash notes

Signed-off-by: JaySon-Huang <tshent@qq.com>

* Apply suggestions from code review

Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>

* Update tiflash/use-tiflash.md

* Update tiflash/use-tiflash.md

Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
  • Loading branch information
JaySon-Huang and TomShawn authored Jan 4, 2021
1 parent 11fb8b6 commit 600de87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tiflash/use-tiflash.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ ALTER TABLE `tpch50`.`lineitem` SET TIFLASH REPLICA 0
CREATE TABLE table_name like t
```

* For the current version, if you create the TiFlash replica before using TiDB Lightning to import the data, the data import will fail. You must import data to the table before creating the TiFlash replica for the table.
* For versions earlier than v4.0.6, if you create the TiFlash replica before using TiDB Lightning to import the data, the data import will fail. You must import data to the table before creating the TiFlash replica for the table.

* If TiDB and TiDB Lightning are both v4.0.6 or later, no matter a table has TiFlash replica(s) or not, you can import data to that table using TiDB Lightning. Note that this might slow the TiDB Lightning procedure, which depends on the NIC bandwidth on the lightning host, the CPU and disk load of the TiFlash node, and the number of TiFlash replicas.

* It is recommended that you do not replicate more than 1,000 tables because this lowers the PD scheduling performance. This limit will be removed in later versions.

Expand Down

0 comments on commit 600de87

Please sign in to comment.