BloomFilter capacity limitation #2541
-
Good day! I have a question about the BloomFilter support. I tried migrating my project from Redis to KVRocks and encountered an issue where it’s not possible to create a BloomFilter with a capacity greater than 2^32. I checked the code [click] and noticed that when parsing the As a result:
Is this a deliberate limitation? Or we can consider such behaviour as a bug? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
As you can see, the It's expected. |
Beta Was this translation helpful? Give feedback.
If you check https://kvrocks.apache.org/community/data-structure-on-rocksdb#bloom-filter, you can get more idea about how it's stored on disk.
I'm not the guy who design this part, but from the design you can see it's 32bit based. If you think that it's not enough, maybe you can provide your use case so that we can have a discussion : )