Teradate查看表在每个AMP的分布的情况

查看表在每个AMP记录数分布的情况

SQL如下:

select
hashamp(hashbucket(hashrow(ID1))) as amp_num
,count(1) as row_count
from sdb.test20201027 group by 1;

 其中sdb.test20201027为表名,ID1为主索引。

 

查看表在每个AMP空间占用情况:

select * from dbc.TableSize
where databasename = 'sdb' and tablename = 'test20201027' order by vproc ;

 

posted @ 2020-10-27 14:25  向日葵的跋涉  阅读(123)  评论(0)    收藏  举报