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

Poc: test read / write performance of chunked 32-bit roaringbitmap #8287

Open
Tracked by #5409
xin-hedera opened this issue May 10, 2024 · 0 comments
Open
Tracked by #5409

Poc: test read / write performance of chunked 32-bit roaringbitmap #8287

xin-hedera opened this issue May 10, 2024 · 0 comments
Labels
database Area: Database enhancement Type: New feature

Comments

@xin-hedera
Copy link
Collaborator

Problem

One idea to increase roaringbitmap compression ratio is create a global contiguous transaction index, and use the roaringbitmap to mark the transaction index instead of sparse, rarely contiguous consensus timestamp. In doing so, there is a much higher change to encode the bits into run-length containers instead of the other two types which don't save as much space.

Also we want to use 32-bit roaringbitmap to reduce both write and read amplification. This however requires the table to have three columns, entity_id, high_value, and bitmap, where the high value is the high 32-bit of the transaction index.

The design would change how the rows are created, merged, and optimized during ingestion, as well as how to query the data based on the rest api query filters since essentially the bitmaps are not split into chunks.

The goal of the ticket is to run PoCs, given transactions with production env pattern, test and identify the potential bottlenecks, and optimize if possible.

Solution

check the description

Alternatives

No response

@xin-hedera xin-hedera added enhancement Type: New feature database Area: Database labels May 10, 2024
@xin-hedera xin-hedera changed the title Poc: test read / write performance of 32-bit roaringbitmap grouped by entity_id and high 32-bit of transaction index Poc: test read / write performance of chucked 32-bit roaringbitmap May 10, 2024
@steven-sheehy steven-sheehy changed the title Poc: test read / write performance of chucked 32-bit roaringbitmap Poc: test read / write performance of chunked 32-bit roaringbitmap May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
database Area: Database enhancement Type: New feature
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant