1
2
# 优化时序数据的压缩策略 compaction 优化
ALTER TABLE hpcang_ods.ods_stock_center_stock_history SET("compaction_policy" = "time_series")

tablet 相关

1
2
3
4
5
6
7
8
9
#查看表 tablet
SHOW tablets FROM dbname.ods_stock_center_stock_history

-- 查看表tablet详情
show tablet tabletID

-- 查看表version count
SHOW PROC '/dbs/2358600/2775394/partitions/2775393/2775395/2775396';