Overview
Scenarios
Product Architecture
Instance Types
Compatibility Notes
SELECTtable_name AS 'table name',ROUND((data_length + index_length) / 1024 / 1024, 2) AS 'total space (MB)',ROUND(data_length / 1024 / 1024, 2) AS 'Data Storage (MB)',ROUND(index_length / 1024 / 1024, 2) AS 'Index Space (MB)',ROUND(data_free / 1024 / 1024, 2) AS 'Fragmented Space (MB)'FROM information_schema.TABLESWHERE table_schema = 'database name'AND table_name = 'table name';
SELECT * FROM information_schema.processlist WHERE INFO LIKE "%table name%" ORDER BY TIME_MS DESC LIMIT 10;
SELECTSUM(region_stats_approximate_size) AS size,COUNT(b.rep_group_id) AS region_nums,sql_addr,c.leader_node_name,b.rep_group_idFROMinformation_schema.META_CLUSTER_DATA_OBJECTS aJOIN information_schema.META_CLUSTER_REGIONS bJOIN information_schema.META_CLUSTER_RGS cJOIN information_schema.META_CLUSTER_NODES dON a.data_obj_id = b.data_obj_idAND b.rep_group_id = c.rep_group_idAND c.leader_node_name = d.node_nameWHEREa.schema_name = 'database name'AND a.table_name = 'table name'GROUP BYrep_group_idORDER BYleader_node_name;
max_parallel_ddl_degree from the default value of 8 to 4 or 2, reducing the number of concurrent DDL threads to alleviate I/O pressure.-- Check the execution status of the DDL; if LAST_TIMESTAMP is updating, the DDL is in progress. If no update occurs for a long time, it may be stuck.SELECT * FROM information_schema.ddl_jobs WHERE is_history = 0;-- To check the progress, focus on the "progress" information in the INFO field of information_Schema.ddl_jobs.ID: 13SCHEMA_NAME: tdstoreTABLE_NAME: sbtest1VERSION: 13DDL_STATUS: SUCCESSSTART_TIMESTAMP: 2025-08-08 14:29:35LAST_TIMESTAMP: 2025-08-08 14:29:35DDL_SQL: alter table tdstore.sbtest1 add index idx(v)INFO_TYPE: ALTER TABLEINFO: {"tmp_tbl":{"db":"tdstore","table":"#sql-d_1000be_6895994e0000ad_1"},"alt_type":1,"alt_tid_upd":{"tid_from":10039,"tid_to":10039},"cr_idx":[{"id":10040,"ver":4,"stat":0,"tbl_type":1,"idx_type":2}],"rm_idx":[],"init":false,"tmp_tab":false,"online_op":true,"wf_rmed":false,"online_copy_stage":0,"idx_op":true,"row_applied":true,"row_apply_saved":true,"current_schema_name":"tdstore","crt_data_obj_task_id":29437883249066288,"dstr_data_obj_task_id":0,"alt_tbl_pp_stage":0,"alt_tbl_policy_option":0,"data_obj_to_be_dstr_arr":[],"progress":"total: 1, scanned: 1 (100.00%)","fillback_mode":"ThomasWrite","exec_addr":{"ip":"10.10.10.10","port":15035},"recov_addr":{"ip":"10.10.10.10","port":15035}}IS_HISTORY: 1-- Observe CPU/I/O load and slow query alarms through the tenant side;
INFO field's progress indicates the progress: "progress":"total: 1, scanned: 1 (100.00%)"-- If it returns empty, it indicates that the DDL job has completed.SELECT * FROM information_schema.ddl_jobs WHERE is_history = 0;
피드백