Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(sroar): Add Roaring Bitmap support to Badger #14

Merged
merged 5 commits into from
Nov 11, 2022
Merged

Conversation

manishrjain
Copy link
Contributor

@manishrjain manishrjain commented Nov 11, 2022

Badger now supports roaring bitmaps. A user can add a key with a uint64 version via WriteBatch. When compacting the data in the background, Badger would merge all these uint64s into sroar . The finalized Bitmap can be queried via a new GetBitmap function. Note that there's no deletion for uint64s yet.

This works well with other keys in the system. Badger can identify which keys need to be compacted into sroar and which don't.

P.S. Fun fact. Almost all of the code (minus the test) was written on the plane to Lisbon: https://twitter.com/manishrjain/status/1584989187589410817

This change is Reviewable

@manishrjain manishrjain marked this pull request as ready for review November 11, 2022 00:50
@manishrjain manishrjain changed the title Add Roaring Bitmap support to Badger (#13) Add Roaring Bitmap support to Badger (#14) Nov 11, 2022
@manishrjain manishrjain changed the title Add Roaring Bitmap support to Badger (#14) Add Roaring Bitmap support to Badger Nov 11, 2022
@manishrjain manishrjain changed the title Add Roaring Bitmap support to Badger feat(sroar): Add Roaring Bitmap support to Badger Nov 11, 2022
@manishrjain manishrjain merged commit 273ca64 into main Nov 11, 2022
@manishrjain manishrjain deleted the mrjn/sroar branch November 11, 2022 03:27
manishrjain added a commit that referenced this pull request Apr 19, 2023
Badger now supports roaring bitmaps. A user can add a key with a uint64 version via WriteBatch. When compacting the data in the background, Badger would merge all these uint64s into sroar . The finalized Bitmap can be queried via a new `GetBitmap` function. Note that there's no deletion for uint64s yet.

This works well with other keys in the system. Badger can identify which keys need to be compacted into sroar and which don't.

P.S. Fun fact. Almost all of the code (minus the test) was written on the plane to Lisbon: https://twitter.com/manishrjain/status/1584989187589410817
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant