【 使用环境 】生产环境
【 OB or 其他组件 】3.1.4-ce
单表6亿行,在合并delete 2亿行数据,insert 20w行数据;
合并结束后查询磁盘占用量,比合并前高了
磁盘占用量sql:
SELECT a.tenant_id , b.tenant_name, ROUND(SUM(required_size)/1024/1024/1024, 2) required_size_gb
from gv$partition a, __all_tenant b where a.tenant_id = b.tenant_id and b.tenant_name =
那试试这个吧,指定table id
select
b.tenant_id, b.table_id, count(distinct(c.macro_idx_in_data_file)) * 2 as
disk_size_in_MB
from
__all_virtual_table b
inner join
__all_virtual_partition_sstable_macro_info c on b.tenant_id = c.tenant_id and
b.table_id = c.table_id
where
b.tenant_id = xxx and b.table_id=yyy group by c.svr_ip, c.svr_port;