Consistently faster and smaller compressed bitmaps with Roaring

Auteurs : Daniel Lemire, Gregory Ssi-Yan-Kai, Owen Kaser

Software: Practice and Experience Volume 46, Issue 11, pages 1547-1569, November 2016
Soumis à arXiv le 21 Mar. 2016
Licence : CC BY 4.0
Résumé scientifique

Compressed bitmap indexes are used in databases and search engines. Many bitmap compression techniques have been proposed, almost all relying primarily on run-length encoding (RLE). However, on unsorted data, we can get superior performance with a hybrid compression technique that uses both uncompressed bitmaps and packed arrays inside a two-level tree. An instance of this technique, Roaring, has recently been proposed. Due to its good performance, it has been adopted by several production platforms (e.g., Apache Lucene, Apache Spark, Apache Kylin and Druid). Yet there are cases where run-length encoded bitmaps are smaller than the original Roaring bitmaps---typically when the data is sorted so that the bitmaps contain long compressible runs. To better handle these cases, we build a new Roaring hybrid that combines uncompressed bitmaps, packed arrays and RLE compressed segments. The result is a new Roaring format that compresses better. Overall, our new implementation of Roaring can be several times faster (up to two orders of magnitude) than the implementations of traditional RLE-based alternatives (WAH, Concise, EWAH) while compressing better. We review the design choices and optimizations that make these good results possible.

Les articles autour de lui, par date et par proximité

Plus haut, c’est plus proche de cet article ; à gauche, c’est plus ancien. Les traits relient les articles proches entre eux : les groupes de traits sont des sous-thèmes. Sélectionnez un point pour voir pourquoi il est là. Retour au résumé de cet article

Comment lire cette carte ? Guide illustré

Les articles les plus proches Les travaux antérieurs sur lesquels il s’appuie Les articles qui le citent

Les articles autour de celui-ci

Classés selon la proximité de leur titre et de leur résumé avec ceux de cet article. Sélectionnez-en pour les lire ensemble.

Les articles les plus proches

  1. Très proche Cité par cet article Utilisé en profondeur par cet article Une méthode qu’il utilise
    Better bitmap performance with Roaring bitmaps
    Samy Chambi, Daniel Lemire, Owen Kaser et al. · 2014 · Software: Practice and Experience Volume 46, Issue 5, pages 709-719, May 2016 · cité 190 fois · Pas encore résumé
    Résumé scientifique

    Bitmap indexes are commonly used in databases and search engines. By exploiting bit-level parallelism, they can significantly accelerate queries. However, they can use much memory, and thus we might prefer compressed bitmap indexes. Following Oracle's lead, bitmaps are often compressed using run-length encoding (RLE). Building on prior work, we introduce the Roaring compressed bitmap format: it uses packed arrays for compression instead of RLE. We compare it to two high-performance RLE-based bitmap encoding techniques: WAH (Word Aligned Hybrid compression scheme) and Concise (Compressed `n' Composable Integer Set). On synthetic and real data, we find that Roaring bitmaps (1) often compress s…

  2. Très proche Cite cet article Utilise cet article en profondeur
    Roaring Bitmaps: Implementation of an Optimized Software Library
    Daniel Lemire, Owen Kaser, Nathan Kurz et al. · 2017 · Software: Practice and Experience Volume 48, Issue 4 April 2018 Pages 867-895 · cité 74 fois · Pas encore résumé
    Résumé scientifique

    Compressed bitmap indexes are used in systems such as Git or Oracle to accelerate queries. They represent sets and often support operations such as unions, intersections, differences, and symmetric differences. Several important systems such as Elasticsearch, Apache Spark, Netflix's Atlas, LinkedIn's Pinot, Metamarkets' Druid, Pilosa, Apache Hive, Apache Tez, Microsoft Visual Studio Team Services and Apache Kylin rely on a specific type of compressed bitmap index called Roaring. We present an optimized software library written in C implementing Roaring bitmaps: CRoaring. It benefits from several algorithms designed for the single-instruction-multiple-data (SIMD) instructions available on com…

  3. Très proche
    APPLE: a new compression scheme for bitmap indexes: poster abstract
    Ge Ma, Tao Yu, Guo-Wei Zhu et al. · 2020 · ACM International Conference on Embedded Networked Sensor Systems · Pas encore résumé
    Résumé scientifique

    Compressed bitmap indexes are increasingly used in databases and search engines. By exploiting bit-level parallelism and bitwise operations, e.g. AND/OR operations, they can significantly accelerate the development of many areas. The Word Aligned Hybrid (WAH) bitmap compression scheme using run-length encoding (RLE), is commonly recognized as the most efficient scheme in terms of CPU-performance. This paper presents a new form of compressed bitmap indexes named Adaptive Partitioned Position List Encoding (APPLE), which uses packed position lists for compression. For experiments, we compare it with Huffman encoding, and two enhanced variants of WAH : Concise and COMPAX. Our empirical results …

  4. Proche
    Compressed bitmap indices for efficient query processing
    Kesheng Wu, E. Otoo, A. Shoshani · 2001 · Lawrence Berkeley National Laboratory · cité 31 fois · Pas encore résumé
    Résumé scientifique

    Many database applications make extensive use of bitmap indexing schemes. In this paper, we study how to improve the efficiencies of these indexing schemes by proposing new compression schemes for the bitmaps. Most compression schemes are designed primarily to achieve good compression. During query processing they can be orders of magnitude slower than their uncompressed counterparts. The new schemes are designed to bridge this performance gap by reducing compression effectiveness and improving operation speed. In a number of tests on both synthetic data and real application data, we found that the new schemes significantly outperform the well-known compression schemes while using only modes…

  5. Proche Cite cet article Utilise cet article en profondeur
    Tree-Encoded Bitmaps
    Harald Lang, Alexander Beischl, Viktor Leis et al. · 2020 · SIGMOD Conference · cité 15 fois · Pas encore résumé
    Résumé scientifique

    We propose a novel method to represent compressed bitmaps. Similarly to existing bitmap compression schemes, we exploit the compression potential of bitmaps populated with consecutive identical bits, i.e., 0-runs and 1-runs. But in contrast to prior work, our approach employs a binary tree structure to represent runs of various lengths. Leaf nodes in the upper tree levels thereby represent longer runs, and vice versa. The tree-based representation results in high compression ratios and enables efficient random access, which in turn allows for the fast intersection of bitmaps. Our experimental analysis with randomly generated bitmaps shows that our approach significantly improves over state-o…

  6. Proche
    Histogram-aware sorting for enhanced word-aligned compression in bitmap indexes
    Owen Kaser, D. Lemire, Kamel Aouiche · 2008 · International Workshop on Data Warehousing and OLAP · cité 20 fois · Pas encore résumé
    Résumé scientifique

    Bitmap indexes must be compressed to reduce input/output costs and minimize CPU usage. To accelerate logical operations (AND, OR, XOR) over bitmaps, we use techniques based on run-length encoding (RLE), such as Word-Aligned Hybrid (WAH) compression. These techniques are sensitive to the order of the rows: a simple lexicographical sort can divide the index size by 9 and make indexes several times faster. We investigate reordering heuristics based on computed attribute-value histograms. Simply permuting the columns of the table based on these histograms can increase the sorting efficiency by 40%.

  7. Proche*
    Compressing bitmap indexes for faster search operations
    Kesheng Wu, E. Otoo, A. Shoshani · 2002 · Proceedings 14th International Conference on Scientific and Statistical Database Management · cité 180 fois · Pas encore résumé
  8. Proche
    An efficient compression scheme for bitmap indices
    Kesheng Wu, E. Otoo, A. Shoshani · 2004 · Lawrence Berkeley National Laboratory · cité 66 fois · Pas encore résumé
    Résumé scientifique

    When using an out-of-core indexing method to answer a query, it isgenerally assumed that the I/O cost dominates the overall query response time. Because of this, most research on indexing methods concentrate on reduceing the sizes of indices. For bitmap indices, compression has been used for this purpose. However, in most cases, operations on these compressed bitmaps, mostly bitwise logical operations such as AND, OR, and NOT, spend more time in CPU than in I/O. To speedup these operations, a number of specialized bitmap compression schemes have been developed; the best known of which is the byte-aligned bitmap code (BBC). They are usually faster in performing logical operations than the gen…

Les travaux antérieurs sur lesquels il s’appuie

  1. Proche Utilisé en profondeur par cet article Une méthode qu’il utilise
    Concise: Compressed 'n' Composable Integer Set
    A. Colantonio, R. Di Pietro · 2010 · Information Processing Letters · cité 97 fois · Pas encore résumé
    Résumé scientifique

    Bit arrays, or bitmaps, are used to significantly speed up set operations in several areas, such as data warehousing, information retrieval, and data mining, to cite a few. However, bitmaps usually use a large storage space, thus requiring compression. Consequently, there is a space-time tradeoff among compression schemes. The Word Aligned Hybrid (WAH) bitmap compression trades some space to allow for bitwise operations without first decompressing bitmaps. WAH has been recognized as the most efficient scheme in terms of computation time. In this paper we present Concise (Compressed 'n' Composable Integer Set), a new scheme that enjoys significantly better performances than WAH. In particular…

  2. Proche*
    A tunable compression framework for bitmap indices
    Gheorghi Guzun, G. Canahuate, David Chiu et al. · 2014 · IEEE International Conference on Data Engineering · cité 64 fois · Pas encore résumé
  3. Proche*
    Byte-aligned bitmap compression
    Gennady Antoshenkov · 1995 · Proceedings DCC '95 Data Compression Conference · cité 211 fois · Pas encore résumé
  4. Apparenté* Une méthode qu’il utilise
    Compressed Spatial Hierarchical Bitmap (cSHB) Indexes for Efficiently Processing Spatial Range Query Workloads
    P. Nagarkar, K. Candan, Aneesha Bhat · 2015 · Proceedings of the VLDB Endowment · cité 18 fois · Pas encore résumé
  5. Apparenté Une méthode qu’il utilise
    SIMD compression and the intersection of sorted integers
    D. Lemire, Leonid Boytsov, Nathan Kurz · 2014 · Software, Practice & Experience · cité 107 fois · Pas encore résumé
    Résumé scientifique

    Sorted lists of integers are commonly used in inverted indexes and database systems. They are often compressed in memory. We can use the single‐instruction, multiple data (SIMD) instructions available in common processors to boost the speed of integer compression schemes. Our S4‐BP128‐D4 scheme uses as little as 0.7 CPU cycles per decoded 32‐bit integer while still providing state‐of‐the‐art compression. However, if the subsequent processing of the integers is slow, the effort spent on optimizing decompression speed can be wasted. To show that it does not have to be so, we (1) vectorize and optimize the intersection of posting lists; (2) introduce the SIMD GALLOPING algorithm. We exploit the…

Les articles qui le citent

  1. Apparenté Utilise cet article en profondeur
    BtrBlocks: Efficient Columnar Compression for Data Lakes
    Maximilian Kuschewski, D. Sauerwein, Adnan Alhomssi et al. · 2023 · Proc. ACM Manag. Data · cité 85 fois · Pas encore résumé
    Résumé scientifique

    Analytics is moving to the cloud and data is moving into data lakes. These reside on object storage services like S3 and enable seamless data sharing and system interoperability. To support this, many systems build on open storage formats like Apache Parquet. However, these formats are not optimized for remotely-accessed data lakes and today's high-throughput networks. Inefficient decompression makes scans CPU-bound and thus increases query time and cost. With this work we present BtrBlocks, an open columnar storage format designed for data lakes. BtrBlocks uses a set of lightweight encoding schemes, achieving fast and efficient decompression and high compression ratios.

  2. Proche
    Beyond Compression: A Comprehensive Evaluation of Lossless Floating-Point Compression
    Kaisei Hishida, Chunwei Liu, John Paparrizos et al. · 2025 · Proceedings of the VLDB Endowment · cité 14 fois · Pas encore résumé
    Résumé scientifique

    Modern data-intensive applications generate vast amounts of floating-point data, essential for fields like databases and machine learning. While many compression techniques focus on space efficiency, there is a lack of benchmarks evaluating both compression and query performance, especially in areas like in-situ query execution on compressed data and machine learning tasks such as distance measurement and k-nearest neighbors (k-NN) in Retrieval-Augmented Generation (RAG) systems. This paper addresses this gap by evaluating popular lossless floating-point compression methods on three key factors: compression efficiency, database operations performance, and machine learning query performance. …

  3. Proche
    Upscaledb: Efficient integer-key compression in a key-value store using SIMD instructions
    D. Lemire, Christoph Rupp · 2016 · Information Systems · cité 6 fois · Pas encore résumé
    Résumé scientifique

    Compression can sometimes improve performance by making more of the data available to the processors faster. We consider the compression of integer keys in a B+-tree index. For this purpose, systems such as IBM DB2 use variable-byte compression over differentially coded keys. We revisit this problem with various compression alternatives such as Google's VarIntGB, Binary Packing and Frame-of-Reference. In all cases, we describe algorithms that can operate directly on compressed data. Many of our alternatives exploit the single-instruction-multiple-data (SIMD) instructions supported by modern CPUs. We evaluate our techniques in a database environment provided by Upscaledb, a production-quality…

  4. Proche
    An Improved Framework for Bitmap Indexes and their Use in Data Warehouse Optimization
    J. Preetha · 2021 · Pas encore résumé
    Résumé scientifique

    Compression technique is basically used to compress the size of table or reduce the storage area. Oracle already gives this feature for the table compression as well as for the index compression. when index is created on particular column of a table then it contain some space, which require some storage or disk space by this technique we can save our disk space because in industry the company have to purchase the disk space according to the size of the their data and pay according to their disk space. To utilize this disk space for useful records data rather than wasting it. In this paper used the data pump utility for the compression of Bitmap index and table. Data pump utility performed fo…

  5. Apparenté
    An Optimization of Bitmap Index Compression Technique in Bulk Data Movement Infrastructure
    Manoj Kumar, Tarun Kumar Gupta, D. U. Sarwe · 2021 · IOP Conference Series: Materials Science and Engineering · cité 1 fois · Pas encore résumé
    Résumé scientifique

    An index is an optional structure, associated with a table or clustered table that can sometimes speed up data access. By creating an index on one or more columns of a table, you gain the ability, in some cases, to retrieve a small set of randomly distributed rows from the table. This research aims to free the filled disk space after documents have been erased. We verify the current compression technologies and apply the data pump to the bitmap index compression. Bitmap is more effective for minimal unique value, according to the traditional wisdom index. However, it needs no Bitmap index at high cardinality or low cardinality by data pump. In this paper we recommend a pump function for spac…

Comment ces articles sont-ils trouvés ?

Nous comparons le titre et le résumé de cet article avec ceux de tous les articles résumés sur ce site, et avec les articles que Semantic Scholar recommande, ceux qu’il cite et ceux qui le citent (pour un article très cité, ses citations les plus récentes et, depuis OpenAlex, les plus citées). Parmi les travaux antérieurs et les suites, les articles qui s’utilisent en profondeur, une méthode qu’il utilise et les suites très citées remontent un peu. Les niveaux (très proche, proche, apparenté) viennent de la similarité des textes, pas d’un jugement de qualité ; * signale un article sans résumé, comparé par son titre. La phrase sous un article est écrite par une IA à partir des deux résumés : vérifiez-la dans les articles. Un article jugé hors sujet par trois lecteurs quitte la liste.

Mis à jour le 4 novembre 2026.

Le guide illustré des articles autour d’un article