Efficient Lightweight Compression Alongside Fast Scans

Эффективное облегчённое сжатие в сочетании с быстрым сканированием
Orestis Polychroniou, Kenneth A. Ross
2015-05-31

SIMD instructionshorizontal bit packinglightweight compressionselection scansvertical bit packing
The increasing main-memory capacity has allowed query execution to occur primarily in main memory. Database systems employ compression, not only to fit the data in main memory, but also to address the memory bandwidth bottleneck. Lightweight compression schemes focus on efficiency over compression rate and allow query operators to process the data in compressed form. For instance, dictionary compression keeps the distinct column values in a sorted dictionary and stores the values as index codes with the minimum number of bits. Packing the bits of each code contiguously, namely horizontal bit packing, has been optimized by using SIMD instructions for unpacking and by evaluating predicates in parallel per processor word for selection scans. Interleaving the bits of codes, namely vertical bit packing, provides faster scans, but incurs prohibitive costs for packing and unpacking. Here, we improve packing and unpacking for vertical bit packing using SIMD instructions, achieving more than an order of magnitude speedup. Also, we optimize horizontal bit packing on the latest CPUs and compare all approaches. While no single variant is better in all cases, vertical bit packing offers a good trade-off by combining the fastest scans with comparably fast packing and unpacking.
1
Horizontal bit packing is optimized for the latest CPUs, enabling a comparison of vertical and horizontal approaches.
2
Lightweight compression enables query operators to process compressed data while addressing memory capacity and bandwidth constraints.
3
No packing variant is universally superior across all cases, indicating workload- and operation-dependent performance trade-offs.
4
SIMD-based improvements for vertical bit packing achieve more than an order-of-magnitude speedup in packing and unpacking.
5
Vertical bit packing combines the fastest scans with comparatively fast packing and unpacking, providing a favorable overall trade-off.

Lightweight bit-packing compression schemes for in-memory database column data

The trade-off between scan speed and packing/unpacking efficiency of horizontal and vertical bit packing, including SIMD-optimized performance on modern CPUs

Publication Details
Publication Date
2015-05-31
Journal
Publisher
ISSN
Access Type
Author Information
Authors
Orestis Polychroniou
Kenneth A. Ross
Explore further
Open the scid.ai AI chat with a ready-made request: it will find papers on a similar topic and help build a literature review.
Find similar papers in the chat
Make a presentation
100%