Monetdb - 数据库中的表大小

时间:2014-03-07 09:49:27

标签: monetdb

我在表中加载了.tbl文件,现在我怎样才能看到数据库在磁盘上使用的总空间? 我正在使用Fedora

2 个答案:

答案 0 :(得分:2)

  

可以使用(Linux)命令'du'来评估磁盘占用空间   dbfarm目录或运行查询'select * from storage();

来源:http://www.monetdb.org/Documentation/Userguide/diskspace

答案 1 :(得分:1)

您可以尝试如下:

mclient -d dwh -f tab -s "select location from storage() where table='name_of_a_table';" | xargs -i du -m /var/monetdb5/dbfarm/dwh/bat/{}.tail | cut -f1 | paste -sd+ | bc