From 5897444912dacdb609063743e99af880b130b708 Mon Sep 17 00:00:00 2001 From: JaySon Date: Mon, 4 Jan 2021 00:39:46 -0600 Subject: [PATCH] cherry pick #4516 to release-4.0 Signed-off-by: ti-srebot --- tiflash/use-tiflash.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tiflash/use-tiflash.md b/tiflash/use-tiflash.md index f4c1365257512..013855cb0390b 100644 --- a/tiflash/use-tiflash.md +++ b/tiflash/use-tiflash.md @@ -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.