v.19.10New Feature
Bitmapcontains Implementation
bitmapContainsimplementation. It's 2x faster thanbitmapHasAnyif the second bitmap contains one element. #5535 (Zhichang Yu)
Why it matters
To provide a faster alternative tobitmapHasAny when checking if the second bitmap contains exactly one element, improving query performance by up to 2x in such cases.How to use it
Use the new function<code>bitmapContains(bitmap1, bitmap2)</code> in your queries where you need to check if the first bitmap contains the elements of the second bitmap, especially when the second bitmap has one element.