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

store/bucket: use roaring bitmaps for postings list #6357

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

GiedriusS
Copy link
Member

TODO: description/tests/convert set operations into bitwise ops

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

Verification

@GiedriusS GiedriusS force-pushed the postings_roaring_bitmaps branch from 515a029 to 1f72e8c Compare May 11, 2023 12:52
@pull-request-size pull-request-size bot added size/L and removed size/M labels May 11, 2023
pkg/store/bucket.go Outdated Show resolved Hide resolved
pkg/store/bucket.go Outdated Show resolved Hide resolved
@GiedriusS GiedriusS force-pushed the postings_roaring_bitmaps branch 4 times, most recently from 6128daf to 9698427 Compare May 15, 2023 12:07
@GiedriusS GiedriusS force-pushed the postings_roaring_bitmaps branch 3 times, most recently from eba4623 to 42d2d72 Compare May 15, 2023 14:38
TODO: description/tests/convert set operations into bitwise ops

Signed-off-by: Giedrius Statkevičius <[email protected]>
@GiedriusS GiedriusS force-pushed the postings_roaring_bitmaps branch from 42d2d72 to d986030 Compare May 15, 2023 15:10
@GiedriusS
Copy link
Member Author

I think we missed one optimization opportunity here - currently fetching and intersection are two separate processes but we can join those two and reuse the same containers to avoid allocations. Let me try to refactor this and rebase on top of recent changes.

@yeya24
Copy link
Contributor

yeya24 commented Jun 27, 2023

@GiedriusS I am thinking if it is better to build the roaring bitmap postings offline at compactor?
Now we are building roaring bitmap during runtime and we still need to download all postings required (if no cache hit).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants