相同的zstd 的压缩格式下 + 相同的数据量,在设置了TIFLASH的情况下,为什么TIDB的压缩大小是其他zstd格式的库接近两倍的大小?

【 TiDB 使用环境】生产环境
【 TiDB 版本】6.5.0
【复现路径】

  1. 将数据导入TIDB、使用zstd的压缩格式,6亿数据 接近600g、该表设置了TIFLASH
    去掉Tiflash 也是这么大小,没有变化。

2 . 请问查看某表 TIKV和TIFLASH总大小的命令是什么?如果我要估算TIKV该表的大小,能通过总大小 除 2 来暴力计算TIKV 和 TIFLASH 的分别大小么?
【遇到的问题:问题现象及影响】
【资源配置】
【附件:截图/日志/监控】


【使用命令】
select ‘tidb_ct’, count(1) as data
from ods_global.ods_g3_dbo_subfhd
union all
select ‘ods_g3_dbo_subfhd’ as tidb_ct, concat(round(sum(data_length / 1024 / 1024 / 1024), 2), ‘GB’) as data
from information_schema.tables
where table_schema = ‘ods_global’
and TABLE_NAME = ‘ods_g3_dbo_subfhd’;

tikv有副本啊,你副本设的几?