tencent cloud

Data Transfer Service

Release Notes and Announcements
Release Notes
Announcements
Product Introduction
Overview
Data Migration
Data Sync
Data Subscription (Kafka Edition)
Strengths
Supported Regions
Specification Description
Purchase Guide
Billing Overview
Configuration Change Description
Payment Overdue
Refund
Getting Started
Data Migration Guide
Data Sync Guide
Data Subscription Guide (Kafka Edition)
Preparations
Business Evaluation
Network Preparation
Adding DTS IP Addresses to the Allowlist of the Corresponding Databases
DTS Service Permission Preparation
Database and Permission Preparation
Configuring Binlog in Self-Built MySQL
Data Migration
Databases Supported by Data Migration
Cross-Account TencentDB Instance Migration
Migration to MySQL Series
Migrating to PostgreSQL
Migrating to MongoDB
Migrating to SQL Server
Migrating to Tencent Cloud Distributed Cache
Task Management
Data Sync
Databases Supported by Data Sync
Cross-Account TencentDB Instance Sync
Sync to MySQL series
Synchronize to PostgreSQL
Synchronization to MongoDB
Synchronize to Kafka
Task Management
Data Subscription (Kafka Edition)
Databases Supported by Data Subscription
MySQL series Data Subscription
Data Subscription for TDSQL PostgreSQL
MongoDB Data Subscription
Task Management
Consumption Management
Fix for Verification Failure
Check Item Overview
Cutover Description
Monitoring and Alarms
Supported Monitoring Indicators
Supported Events
Configuring Metric Alarms and Event Alarms via the Console
Configuring Indicator Monitoring and Event Alarm by APIs
Ops Management
Configuring Maintenance Time
Task Status Change Description
Practical Tutorial
Synchronizing Local Database to the Cloud
Creating Two-Way Sync Data Structure
Creating Many-to-One Sync Data Structure
Creating Multi-Site Active-Active IDC Architecture
Selecting Data Sync Conflict Resolution Policy
Using CLB as Proxy for Cross-Account Database Migration
Migrating Self-Built Databases to Tencent Cloud Databases via CCN
Best Practices for DTS Performance Tuning
FAQs
Data Migration
Data Sync
FAQs for Data Subscription Kafka Edition
Regular Expressions for Subscription
Error Handling
Common Errors
Failed Connectivity Test
Failed or Alarmed Check Item
Inability to Select Subnet During CCN Access
Slow or Stuck Migration
Data Sync Delay
High Data Subscription Delay
Data Consumption Exception
API Documentation
History
Introduction
API Category
Making API Requests
(NewDTS) Data Migration APIs
Data Sync APIs
Data Consistency Check APIs
(NewDTS) Data Subscription APIs
Data Types
Error Codes
DTS API 2018-03-30
Service Agreement
Service Level Agreements

Key Prefix Filtering

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2026-03-31 11:00:38

Overview

DTS supports configuring prefix filtering rules for multi-key commands migration linkages, making it easier for users to manage keys in their databases.

Key Prefix Filtering Rules

Supports configuring single or multiple key prefix matching rules, with multiple prefixes separated by the Enter key.
When migration rules and filtering rules are used together, filtering rules take precedence over migration rules.

Key Prefix Filtering Rule Examples

1. MSET/DEL/UNLINK commands use exact matching rules.
Migration rule: If a multi-key command on the source matches a single key, only that key is migrated to the target; other keys are not migrated.
Filtering rule: If a multi-key command on the source matches a single key, only that key is filtered and not migrated to the target; other keys will still be migrated.
Prefix Type
Source Database Key Command
Prefix Set in DTS
Result on Target
Migration key prefix
MSET dtsnew "111" abcd "222"
dts
MSET dtsnew "111"
Filtering key prefix
MSET redisnew "111" efgh "222"
redis
MSET efgh "222"
2. Commands other than MSET/DEL/UNLINK.
Migration rule: If a multi-key command on the source matches any migration prefix, the entire command will be migrated to the target.
Filtering rule: A multi-key command on the source will only be filtered if all keys match the filter prefix. If only one key matches, the command will not be filtered and will still migrate to the target.
Prefix Type
Source Database Key Command
Prefix Set in DTS
Result on Target
Migration key prefix
SUNION dtsnew abcd
dts
SUNION dtsnew abcd
Filtering key prefix
SUNION redisnew efgh
redis
SUNION redisnew efgh
Filtering key prefix
SUNION redisnew efgh
redis
efg
Unsynced

Directions

To configure a migration task, go to the Set migration options and select migration objects page, check Enable Key Filter, set the filtering rules, and proceed with the subsequent configuration steps.

Ajuda e Suporte

Esta página foi útil?

comentários