BitWeaving
Yinan Li, Jignesh M. Patel · Proceedings - ACM-SIGMOD International Conference on Management of Data · 2013
This paper focuses on running scans in a main memory data processing system at "bare metal" speed. Essentially, this means that the system must aim to process data at or near the speed of the processor (the fastest component in most system configurations). Scans are common in main memory data processing environments, and with the state-of-the-art techniques it still takes many cycles per input tuple to apply simple predicates on a single column of a table. In this paper, we propose a technique called BitWeaving that exploits the parallelism available at the bit level in modern processors. BitWeaving operates on multiple bits of data in a single cycle, processing bits from different columns in each cycle. Thus, bits from a batch of tuples are processed in each cycle, allowing BitWeaving to drop the cycles per column to below one in some case. BitWeaving comes in two flavors: BitWeaving/V which looks like a columnar organization but at the bit level, and BitWeaving/H which packs bits horizontally. In this paper we also develop the arithmetic framework that is needed to evaluate predicates using these BitWeaving organizations. Our experimental results show that both these methods produce significant performance benefits over the existing state-of-the-art methods, and in some cases produce over an order of magnitude in performance improvement.
Cited by 153 works. doi:10.1145/2463676.2465322
Authors
References
- Transaction Processing Performance Council
- Improved query performance with variant indexes
- Integrating compression and execution in column-oriented database systems
- Super-Scalar RAM-CPU Cache Compression
- Implementing database operations using SIMD instructions
- SIMD-scan
- HYRISE
- The SAP HANA Database - An Architecture Overview
- Fast updates on read-optimized databases using multi-core CPUs
- Constant-Time Query Processing