Policy Category | Single Topic Partitioning Policy | Feature Scenario |
Custom Topic Name | Not involved | Data from different libraries and tables can be delivered to different Topics. |
Deliver to a Single Topic | Topic partitioning policy (default partitioning policy) | Deliver all to Partition0: deliver all to the first partition of a single Topic. By table name: deliver data from the same table to the same partition. By table name + primary key: deliver data with the same primary key value in the same table to the same partition. This policy is suitable for hot data; after setting, tables with hot data will be scattered and delivered to different partitions. |
| Topic partitioning policy (default partitioning policy) + custom partitioning policy | 1. First, deliver matched database and table data according to the custom partitioning policy (supports partitioning by table name, table name + primary key, and column). 2. Then, deliver the remaining unmatched database and table data according to the Topic partitioning policy (default partitioning policy). |

Topic Name | Database Name Match Mode | Table Name Match Mode | Description |
Topic_A | ^Users$ | .* | Users$ indicates a precision match of the Users database, where is the start symbol and $ is the end symbol; entering only Users matches all database names containing Users, such as table X_Users_1. .* matches all table names. |
Topic_default | Databases that don't match the above rules | Tables that don't match the above rules | - |
Topic Name | Database Name Match Mode | Table Name Match Mode | Description |
Topic_A | ^Users$ | ^Teacher$ | Teacher$ indicates a precision match of the table name Teacher, where is the start symbol, and $ is the end symbol; entering only Teacher matches all tables containing Teacher, such as F_Teacher_1. |
Topic_A | ^Users$ | ^Student$ | - |
Topic_default | Databases that don't match the above rules | Tables that don't match the above rules | - |
Topic Name | Database Name Match Mode | Table Name Match Mode | Description |
Topic_A | ^Users$ | ^Teacher$ | - |
Topic_A | ^Users$ | ^Student | ^Student matches all tables with the prefix Student, namely Student, Student1, Student2, and Student3. |
Topic_default | Databases that don't match the above rules | Tables that don't match the above rules | - |


test table, it should be ^test$.==, and is case-insensitive.^A$; for the table name match mode, enter ^test$. After selecting By table name, the data from A database's test table will be delivered to the same partition. Meanwhile, test table's data, except for other unmatched database and table data, will be delivered according to the Topic partitioning policy (default partitioning policy).
^A$; for the table name match mode, enter ^test$. After selecting By table name + primary key, data from the A database's test table will be scattered and delivered to different partitions based on primary key data, eventually delivering data with the same primary key to the same partition. Data from other unmatched databases and tables, except for the test table, will be delivered according to the Topic partitioning policy (default partitioning policy).
^A$; for the table name match mode, enter ^test$. Enter class for the custom partition column, and after selecting By column, data from A database's table test with column name class will be scattered and delivered to different partitions, eventually delivering updated data from the same column to the same partition. Data from other unmatched databases and tables, except for the test table, will be delivered according to the Topic partitioning policy (default partitioning policy).
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários