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

Apply cardinality thresholds before using indexes #7600

Open
richardstartin opened this issue Oct 19, 2021 · 0 comments
Open

Apply cardinality thresholds before using indexes #7600

richardstartin opened this issue Oct 19, 2021 · 0 comments

Comments

@richardstartin
Copy link
Member

richardstartin commented Oct 19, 2021

AndDocIdSet evaluates sorted indexes, then bitmap indexes, and then scans, on the basis that these operators have increasing cost, but after any one of these stages it may be faster to skip indexes and go straight to scanning. This can be determined by checking the cardinality of the matching documents bitmap exceeds an empirically determined threshold before using an index.

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

No branches or pull requests

1 participant