سؤال

I've loaded .tbl files in the tables, now how I can see the total space used on the disk by the database? I'm using Fedora

هل كانت مفيدة؟

المحلول

The disk footprint can be assessed using the (Linux) command 'du' on the dbfarm directory or to run the query 'select * from storage();

Source: http://www.monetdb.org/Documentation/Userguide/diskspace

نصائح أخرى

You can try as follows:

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
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top