Abstract
Bitmap indexes are a cornerstone of high-performance analytical databases, yet their storage requirements can be prohibitive. While existing compression techniques like Roaring bitmaps optimize individual columns, they overlook cross-column redundancies. This paper presents CorBit, a novel compression framework that exploits inter-column correlations through XOR-based diff-encoding. By utilizing a specialized "Total Reduced Popcnt" metric and a greedy DAG construction algorithm, CorBit reduces index sizes by up to 14.6% compared to industry-standard Roaring bitmaps, with only a modest increase in query latency.
Introduction
In large-scale data warehousing, bitmap indexes enable rapid data filtering through bitwise operations. However, the sheer volume of these indexes often strains storage and memory resources. Traditional compression methods treat each column in isolation. In reality, real-world datasets frequently contain highly correlated attributes—such as "City" and "Zip Code"—where information is redundant across columns. CorBit bridges this gap by introducing cross-column compression, storing the difference (XOR) between correlated bitmaps to achieve higher sparsity and better compressibility.
Methods
The core of CorBit is diff-encoding, where a column is stored as an XOR result against a reference column. To optimize this process, CorBit employs several key strategies:
- Total Reduced Popcnt Metric: Traditional statistical measures like Cramer’s V often fail to predict actual storage savings. CorBit uses "Total Reduced Popcnt" (Population Count) to directly measure the reduction in Hamming weight after an XOR operation, providing a more accurate heuristic for compression potential.
- Greedy DAG Construction: To determine the optimal set of reference relationships, CorBit models the database as a Directed Acyclic Graph (DAG). It uses a greedy approach to select edges that maximize space savings while ensuring that no circular dependencies are formed, which would complicate data retrieval.
- Thresholding ($p$): To manage the trade-off between space and speed, CorBit introduces a threshold parameter $p$. Diff-encoding is only applied if the resulting space savings exceed $p\%$. This ensures that the computational cost of XORing during a lookup is only incurred when the storage benefit is significant.
Evaluation and Results
CorBit was evaluated against the state-of-the-art Roaring bitmap implementation using three real-world datasets: DMV vehicle registrations, NYC Taxi records, and hospital Diabetes records.
The results demonstrate that CorBit consistently outperforms Roaring bitmaps in space efficiency. On the DMV dataset, CorBit achieved a 9.1% space saving with a default threshold, which could be tuned up to 14.6%. While this compression introduces a latency overhead—approximately 12.6% for lookups on the DMV dataset—the absolute increase is often in the microsecond range, making it a viable trade-off for storage-constrained environments.
On the Taxi dataset, the performance was even more favorable, achieving significant space savings with query latencies nearly identical to the baseline. Furthermore, the algorithm demonstrated "semantic discovery," automatically identifying logical relationships like "Zip Code" to "City" without prior domain knowledge.
Conclusion
CorBit provides a practical and effective method for reducing the storage footprint of bitmap indexes by exploiting cross-column correlations. By allowing users to tune the balance between compression and latency via thresholding, it offers a flexible solution for modern data warehousing needs. Future research will focus on supporting multi-step dependency chains and handling dynamic data updates.
Summary updated