MonetDB用户指南4——(资源)磁盘空间

来源:互联网 发布:网易跟帖知乎 编辑:程序博客网 时间:2024/05/23 01:14

原文:http://www.monetdb.org/Documentation/Userguide/diskspace

Disk space

        

The disk space footprint is determined by the way columns are being stored. MonetDB uses dictionary encoding for string columns, but aside from this there is no default compression applied to reduce the disk footprint. The prime reason being the two-headed sword of compression. It safes (cheap) disk space and IO bandwidth at the cost of expensive CPU (de)compression overhead (Seecompression). Since all columns are memory mapped upon access, i.e. they need not be decompressed.  If disk space comes at a premium and memory residency can be guaranteed for a long time, then one of the compression optimizers may become helpful.

The disk footprint can be assessed using the (Linux) command 'du' on the dbfarm directory or to run the query 'select * from storage();', provided the sql extensions are pre-loaded into your database. (Seestorage model)

磁盘空间是由的方式被存储MonetDB使用字典编码字符串除了这个没有默认压缩以减少硬盘占用量首要原因压缩的两面性便宜)磁盘空间和IO带宽和成本昂贵的CPU(DE)压缩开销压缩)由于所有内存映射访问,即他们需要无法解压缩如果磁盘空间可以保证内存驻留很长一段时间压缩优化可能很有帮助。

磁盘占用,可以使用Linux)命令“du”评估,在dbfarm目录运行查询SELECT * FROM storage();'可以评估,需要预先加载到你的数据库SQL扩展存储模型

原创粉丝点击