Overview
Scenarios
Product Architecture
Instance Types
Compatibility Notes
tindex_id for each partition to the primary table's tindex_id. For partitioned tables, when Raft logs are parsed, the corresponding primary table's tindex_id can be located via the partition's tindex_id, thereby obtaining the table schema required for Raft log parsing by querying the sys.logservice_dd_tables table.Field Name | Type | Description |
sid | bigint unsigned | Stores the identifier for logservice. |
tindex_id | int unsigned | The ID for each partition. |
parent_tindex_id | int unsigned | The tindex id of the primary table corresponding to the current partition. |
tdsql> DESC sys.logservice_dd_partitions;+------------------+-----------------+------+-----+---------+-------+| Field | Type | Null | Key | Default | Extra |+------------------+-----------------+------+-----+---------+-------+| sid | bigint unsigned | NO | PRI | NULL | || tindex_id | int unsigned | NO | PRI | NULL | || parent_tindex_id | int unsigned | NO | | NULL | |+------------------+-----------------+------+-----+---------+-------+tdsql> SELECT * FROM sys.logservice_dd_partitions;+-------------------+-----------+------------------+| sid | tindex_id | parent_tindex_id |+-------------------+-----------+------------------+| 29475711576178806 | 10035 | 10034 || 29475711576178806 | 10036 | 10034 || 29475711576178806 | 10037 | 10034 || 29475711576178806 | 10038 | 10034 |+-------------------+-----------+------------------+
피드백