RoaringBitmap is a memory efficient, high performance compressed bitmap data structure. It is widely used in numerous big data and analytics softwares.

Ants Aasma discusses how RoaringBitmap was used to solve a very practical problem.

Ants Aasma: Counting things at the speed of light with roaring bitmaps (PGConf.EU 2023)
PostgreSQL Europe
Jan 9, 2024

Use-Case:

  1. Search through 100 million documents
  2. Need accurate results
  3. No false positives
  4. Response time to be less than 2 seconds 😄
Solution Time taken
Naive implementation - SQL query ~ 32 seconds
RoaringBitmap based implementation :rocket: < 1 second !

References