Migrate from Tencent Cloud to Zilliz Cloud
Tencent Cloud VectorDB is a vector database solution designed for similarity searches. Migrating data from Tencent Cloud VectorDB to Zilliz Cloud allows users to take advantage of Zilliz Cloud's enhanced capabilities for vector analytics and scalable data management.
The migration process is structured into these steps:
-
Connect to data source: Enter your VectorDB instance URL and API key to establish a connection.
-
Select source and target:
-
Choose one or more source collections for migration.
-
Select an existing Zilliz Cloud cluster as the target.
-
-
Configure schema: Verify that field types are correctly mapped between Tencent Cloud VectorDB and Zilliz Cloud. For detailed mapping rules, refer to Mapping rules.
Mapping rules
The following table summarizes how field types in Tencent Cloud VectorDB are mapped to Zilliz Cloud field types, along with details on any customization options.
VectorDB Field Type | Zilliz Cloud Field Type | Description |
---|---|---|
Primary key | Primary key | The primary key from Tencent Cloud VectorDB is automatically mapped as the primary key in Zilliz Cloud. When migrating data, you can enable Auto ID. However, if you do so, the original primary key values from your source collection will be discarded. |
Dense vector | FLOAT_VECTOR | Dense vector fields are transferred as FLOAT_VECTOR with no modifications required. |
JSON | Dynamic field | By default, Tencent Cloud VectorDB's JSON field is mapped as a dynamic schema in Zilliz Cloud. When migrating data, consider converting dynamic fields into fixed fields when their patterns have stabilized and you want to enforce strict data types and optimized index configurations for these fields. |
string | VARCHAR | If a field in Tencent Cloud VectorDB's JSON field is of type string and you convert it to a fixed field, it becomes a VARCHAR type. Note: The maximum length for this field is fixed at 65,535 bytes and cannot be modified. The capacity calculation is determined by the actual field length. |
uint64 | INT32 | If a field in Tencent Cloud VectorDB's JSON field is of type uint64 and you convert it to a fixed field, it becomes an INT32 type. |
double | DOUBLE | If a field in Tencent Cloud VectorDB's JSON field is of type double and you convert it to a fixed field, it becomes a DOUBLE type. |
array | ARRAY | If a field in Tencent Cloud VectorDB's JSON field is of type array and you convert it to a fixed field, it becomes an ARRAY type. |
Before you start
-
The source Tencent Cloud VectorDB instance is accessible from the public internet.
-
If you have an allowlist configured in your network environment, ensure that Zilliz Cloud IP addresses are added to it. For more information, refer to Zilliz Cloud IPs.
-
You have been granted the Organization Owner or Project Admin role on Zilliz Cloud. If you do not have the necessary permissions, contact your Zilliz Cloud administrator.
Migrate from Tencent Cloud to Zilliz Cloud
-
Log in to the Zilliz Cloud console.
-
Go to the target project page and select Migrations > Tencent Cloud VectorDB.
-
In the Connect to Data Source step, enter Instance URL and API Key. Then, click Next.
-
In the Select Source and Target step, configure settings for the source database and target Zilliz Cloud cluster. Then, click Next.
📘NotesEach source index you choose to migrate from Tencent Cloud VectorDB must include a vector field.
-
In the Configure Schema step, set up field mappings between Zilliz Cloud and Tencent Cloud VectorDB:
-
Confirm field mappings:
-
Zilliz Cloud automatically detects and displays your Tencent Cloud VectorDB fields alongside their corresponding target fields. For details on how these fields are mapped, refer to Mapping rules.
-
Verify that each Tencent Cloud VectorDB field is correctly paired with its corresponding target field. You can rename fields as needed, but note that the data type cannot be changed.
-
-
Handle JSON fields:
-
Your Tencent Cloud VectorDB JSON fields appear in the Metadata section and are set as dynamic fields by default.
📘NotesDynamic fields store metadata in a JSON format, enabling more flexible and evolving data structures. For details, refer to Dynamic Field.
Fixed fields are explicitly defined in your schema with a predetermined structure. They allow you to enforce specific data types and index configurations.
-
To convert a JSON field into a fixed field, select the field and click the Convert to Fixed Field icon. Note that Zilliz Cloud samples only 100 rows to extract fields from payloads. To add more fields, click the Settings icon.
-
For JSON fields converted to fixed fields, configure the following attributes:
-
Nullable: Decide whether a field can accept null values. This feature is enabled by default. For details, refer to Nullable & Default.
-
Default Value: Specify a default value for a field. For details, refer to Nullable & Default.
-
Partition Key: Optionally designate an INT64 or VARCHAR field as the partition key. Note: Each collection supports only one partition key, and the selected field cannot be nullable. For details, refer to Use Partition Key.
-
-
-
(Optional) Adjust shards:
-
Click Advanced Settings to configure the number of shards for your target collection.
-
For datasets of around 100 million rows, a single shard is typically sufficient.
-
If your dataset exceeds 1 billion rows, contact us to discuss optimal shard configuration for your use case.
-
-
-
Click Migrate.
Monitor the migration process
Once you click Migrate, a migration job will be generated. You can check the migration progress on the Jobs page. When the job status switches from In Progress to Successful, the migration is complete.
Post-migration
After the migration job is completed, note the following:
-
Index Creation: The migration process does not automatically create indexes for vector fields when migrating from external data sources. You must manually create the index for each vector field. For details, refer to Index Vector Fields.
-
Manual Loading Required: After creating the necessary indexes, manually load the collections to make them available for search and query operations. For details, refer to Load & Release.
Once you have completed indexing and loading, verify that the number of collections and entities in the target cluster matches the data source. If discrepancies are found, delete the collections with missing entities and re-migrate them.
Cancel migration job
If the migration process encounters any issues, you can take the following steps to troubleshoot and resume the migration:
-
On the Jobs page, identify the failed migration job and cancel it.
-
Click View Details in the Actions column to access the error log.