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

Use weighted array instead of bitvector when imported filter attribute (MERGEOK) #33177

Conversation

toregge
Copy link
Member

@toregge toregge commented Jan 24, 2025

has few hits.

If lid space is 80M, and we estimate 100 hits then a bitvector will use 10MB while a weighted array will use 800 bytes.

Always using bitvectors can be a problem when we have queries with many terms (e.g. queries using weightedset operator with 1000 or more terms).

@geirst : please review
@vekterli, @arnej27959 : FYI

has few hits.

If lid space is 80M, and we estimate 100 hits then a bitvector will use
10MB while a weighted array will use 800 bytes.

Always using bitvectors can be a problem when we have queries with many
terms (e.g. queries using weightedset operator with 1000 or more terms).
@toregge toregge requested a review from geirst January 24, 2025 15:53
@geirst geirst changed the title Use weighted array instead of bitvector when imported filter attribute Use weighted array instead of bitvector when imported filter attribute (MERGEOK) Jan 24, 2025
@geirst geirst merged commit 99826c0 into master Jan 24, 2025
3 checks passed
@geirst geirst deleted the toregge/use-weighted-array-instead-of-bitvector-when-imported-filter-attribute-has-few-hits branch January 24, 2025 16:13
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.

2 participants