arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2105.09058cs.DBcs.DCcs.PF
收藏

再论列存储中的数据压缩

Revisiting Data Compression in Column-Stores

Alexander Slesarev, Evgeniy Klyuchikov, Kirill Smirnov, George Chernishev

摘要:

数据压缩被广泛应用于当代的列式数据库管理系统中,以降低空间使用率和加快查询处理速度。先驱系统已经引入压缩来解决磁盘带宽瓶颈,通过交换CPU处理能力来解决它。这方面的主要问题是压缩比和解压缩CPU成本之间的权衡。现有的结果表明,轻量级压缩与小的解压缩成本优于重量级压缩方案在列存储。然而,自从获得这些结果以来,CPU、RAM和磁盘性能都有了相当大的提高。此外,新的压缩算法已经出现。在本文中,我们重新审视基于磁盘的列存储的压缩问题。更准确地说,我们研究了I/O-RAM压缩方案,这意味着有两种类型的页面大小不同:磁盘页面(压缩)和内存页面(未压缩)。在这个方案中,缓冲区管理器负责在页面从磁盘到达时立即解压缩页面。这种方案是相当流行的,因为它很容易实现:一些现代的列和行存储使用它。我们提出并解决以下研究问题:1)重型压缩方案仍然不适合基于磁盘的列存储?,2)新的轻量级压缩算法比旧的更好吗?3)对于基于磁盘的系统,是否需要采用SIMD的解压缩算法?我们研究这些问题的实验使用列式查询引擎和星型架构基准。

英文摘要:

Data compression is widely used in contemporary column-oriented DBMSes to lower space usage and to speed up query processing. Pioneering systems have introduced compression to tackle the disk bandwidth bottleneck by trading CPU processing power for it. The main issue of this is a trade-off between the compression ratio and the decompression CPU cost. Existing results state that light-weight compression with small decompression costs outperforms heavy-weight compression schemes in column-stores. However, since the time these results were obtained, CPU, RAM, and disk performance have advanced considerably. Moreover, novel compression algorithms have emerged. In this paper, we revisit the problem of compression in disk-based column-stores. More precisely, we study the I/O-RAM compression scheme which implies that there are two types of pages of different size: disk pages (compressed) and in-memory pages (uncompressed). In this scheme, the buffer manager is responsible for decompressing pages as soon as they arrive from disk. This scheme is rather popular as it is easy to implement: several modern column and row-stores use it. We pose and address the following research questions: 1) Are heavy-weight compression schemes still inappropriate for disk-based column-stores?, 2) Are new light-weight compression algorithms better than the old ones?, 3) Is there a need for SIMD-employing decompression algorithms in case of a disk-based system? We study these questions experimentally using a columnar query engine and Star Schema Benchmark.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑