arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 0805.3339cs.DB
收藏

索引位图的数据表和压缩的三种方法

Tri de la table de faits et compression des index bitmaps avec alignement sur les mots

Kamel Aouiche, Daniel Lemire, Owen Kaser

摘要:

位图索引经常用于索引多维数据。它们主要依赖于顺序输入/输出。可以压缩位图以降低输入/输出成本并最大限度地减少CPU使用。最有效的压缩技术是基于行程长度编码(RLE),例如字对齐混合(WAH)压缩。这种类型的压缩加速了位图上的逻辑运算(AND、OR)。然而,行程长度编码对事实的顺序敏感。因此,我们建议对事实表进行排序。我们回顾字典式,格雷码,和块排序。我们发现,词典式排序改进了压缩--有时生成的索引是原来的两倍--并使索引的速度提高了几倍。虽然排序需要时间,但索引排序表的速度更快,这部分抵消了排序的时间。列顺序很重要:通常最好将具有不同值的列放在开头。分块排序的效率比全排序低得多。此外,我们发现,格雷码排序是不优于字典排序时,使用词对齐压缩。

英文摘要:

Bitmap indexes are frequently used to index multidimensional data. They rely mostly on sequential input/output. Bitmaps can be compressed to reduce input/output costs and minimize CPU usage. The most efficient compression techniques are based on run-length encoding (RLE), such as Word-Aligned Hybrid (WAH) compression. This type of compression accelerates logical operations (AND, OR) over the bitmaps. However, run-length encoding is sensitive to the order of the facts. Thus, we propose to sort the fact tables. We review lexicographic, Gray-code, and block-wise sorting. We found that a lexicographic sort improves compression--sometimes generating indexes twice as small--and make indexes several times faster. While sorting takes time, this is partially offset by the fact that it is faster to index a sorted table. Column order is significant: it is generally preferable to put the columns having more distinct values at the beginning. A block-wise sort is much less efficient than a full sort. Moreover, we found that Gray-code sorting is not better than lexicographic sorting when using word-aligned compression.

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

↑