Skip to content

Commit 1979c09

Browse files
authored
cloud: document Premium import workflows (#21968)
1 parent 3860ae9 commit 1979c09

10 files changed

+909
-13
lines changed

TOC-tidb-cloud-premium.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,15 +205,16 @@
205205
- Migrate or Import Data
206206
- [Overview](/tidb-cloud/tidb-cloud-migration-overview.md)
207207
- Migrate Data into TiDB Cloud
208-
- [Migrate from TiDB Self-Managed to TiDB Cloud](/tidb-cloud/migrate-from-op-tidb.md)
208+
- [Migrate from TiDB Self-Managed to TiDB Cloud Premium](/tidb-cloud/premium/migrate-from-op-tidb-premium.md)
209209
- [Migrate and Merge MySQL Shards of Large Datasets](/tidb-cloud/migrate-sql-shards.md)
210210
- [Migrate from Amazon RDS for Oracle Using AWS DMS](/tidb-cloud/migrate-from-oracle-using-aws-dms.md)
211211
- Import Data into TiDB Cloud
212212
- [Import Sample Data (SQL Files) from Cloud Storage](/tidb-cloud/import-sample-data-serverless.md)
213-
- [Import CSV Files from Cloud Storage](/tidb-cloud/import-csv-files-serverless.md)
213+
- [Import CSV Files from Cloud Storage](/tidb-cloud/premium/import-csv-files-premium.md)
214+
- [Import CSV Files from Amazon S3](/tidb-cloud/premium/import-from-s3-premium.md)
214215
- [Import Parquet Files from Cloud Storage](/tidb-cloud/import-parquet-files-serverless.md)
215216
- [Import Snapshot Files from Cloud Storage](/tidb-cloud/import-snapshot-files-serverless.md)
216-
- [Import with MySQL CLI](/tidb-cloud/import-with-mysql-cli-serverless.md)
217+
- [Import Data Using MySQL CLI](/tidb-cloud/premium/import-with-mysql-cli-premium.md)
217218
- Reference
218219
- [Configure External Storage Access for TiDB Cloud](/tidb-cloud/serverless-external-storage.md)
219220
- [Naming Conventions for Data Import](/tidb-cloud/naming-conventions-for-data-import.md)

tidb-cloud/import-csv-files-serverless.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ This document describes how to import CSV files from Amazon Simple Storage Servi
1313
1414
## Limitations
1515

16-
- To ensure data consistency, TiDB Cloud allows to import CSV files into empty tables only. To import data into an existing table that already contains data, you can import the data into a temporary empty table by following this document, and then use the `INSERT SELECT` statement to copy the data to the target existing table.
16+
- To ensure data consistency, TiDB Cloud allows importing CSV files into empty tables only. To import data into an existing table that already contains data, you can import the data into a temporary empty table by following this document, and then use the `INSERT SELECT` statement to copy the data to the target existing table.
1717

1818
## Step 1. Prepare the CSV files
1919

20-
1. If a CSV file is larger than 256 MB, consider splitting it into smaller files, each with a size around 256 MB.
20+
1. If a CSV file is larger than 256 MiB, consider splitting it into smaller files, each with a size around 256 MiB.
2121

22-
TiDB Cloud supports importing very large CSV files but performs best with multiple input files around 256 MB in size. This is because TiDB Cloud can process multiple files in parallel, which can greatly improve the import speed.
22+
TiDB Cloud supports importing very large CSV files but performs best with multiple input files around 256 MiB in size. This is because TiDB Cloud can process multiple files in parallel, which can greatly improve the import speed.
2323

2424
2. Name the CSV files as follows:
2525

tidb-cloud/import-csv-files.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ This document describes how to import CSV files from Amazon Simple Storage Servi
1010

1111
## Limitations
1212

13-
- To ensure data consistency, TiDB Cloud allows to import CSV files into empty tables only. To import data into an existing table that already contains data, you can use TiDB Cloud to import the data into a temporary empty table by following this document, and then use the `INSERT SELECT` statement to copy the data to the target existing table.
13+
- To ensure data consistency, TiDB Cloud allows importing CSV files into empty tables only. To import data into an existing table that already contains data, you can use TiDB Cloud to import the data into a temporary empty table by following this document, and then use the `INSERT SELECT` statement to copy the data to the target existing table.
1414

1515
- If a TiDB Cloud Dedicated cluster has a [changefeed](/tidb-cloud/changefeed-overview.md) or has [Point-in-time Restore](/tidb-cloud/backup-and-restore.md#turn-on-point-in-time-restore) enabled, you cannot import data to the cluster (the **Import Data** button will be disabled) because the current data import feature uses the [physical import mode](https://docs.pingcap.com/tidb/stable/tidb-lightning-physical-import-mode). In this mode, the imported data does not generate change logs, so the changefeed and Point-in-time Restore cannot detect the imported data.
1616

1717
## Step 1. Prepare the CSV files
1818

19-
1. If a CSV file is larger than 256 MB, consider splitting it into smaller files, each with a size of around 256 MB.
19+
1. If a CSV file is larger than 256 MiB, consider splitting it into smaller files, each with a size of around 256 MiB.
2020

21-
TiDB Cloud supports importing very large CSV files but performs best with multiple input files around 256 MB in size. This is because TiDB Cloud can process multiple files in parallel, which can greatly improve the import speed.
21+
TiDB Cloud supports importing very large CSV files but performs best with multiple input files around 256 MiB in size. This is because TiDB Cloud can process multiple files in parallel, which can greatly improve the import speed.
2222

2323
2. Name the CSV files as follows:
2424

tidb-cloud/import-with-mysql-cli-serverless.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ INSERT INTO products (product_id, product_name, price) VALUES
5353
(3, 'Tablet', 299.99);
5454
```
5555

56-
## Step 3. Import data from a SQL or CSV file
56+
## Step 3. Import data from an SQL or CSV file
5757

5858
You can import data from an SQL file or a CSV file. The following sections provide step-by-step instructions for importing data from each type.
5959

tidb-cloud/import-with-mysql-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ INSERT INTO products (product_id, product_name, price) VALUES
4949
(3, 'Tablet', 299.99);
5050
```
5151

52-
## Step 3. Import data from a SQL or CSV file
52+
## Step 3. Import data from an SQL or CSV file
5353

5454
You can import data from an SQL file or a CSV file. The following sections provide step-by-step instructions for importing data from each type.
5555

tidb-cloud/migrate-from-op-tidb.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ summary: Learn how to migrate data from TiDB Self-Managed to TiDB Cloud.
55

66
# Migrate from TiDB Self-Managed to TiDB Cloud
77

8-
This document describes how to migrate data from your TiDB Self-Managed clusters to TiDB Cloud (AWS) through Dumpling and TiCDC.
8+
This document describes how to migrate data from your TiDB Self-Managed clusters to TiDB Cloud (on AWS) through Dumpling and TiCDC.
99

1010
The overall procedure is as follows:
1111

1212
1. Build the environment and prepare the tools.
1313
2. Migrate full data. The process is as follows:
1414
1. Export data from TiDB Self-Managed to Amazon S3 using Dumpling.
1515
2. Import data from Amazon S3 to TiDB Cloud.
16-
3. Replicate incremental data by using TiCDC.
16+
3. Replicate incremental data using TiCDC.
1717
4. Verify the migrated data.
1818

1919
## Prerequisites

0 commit comments

Comments
 (0)