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

feat: allow scalar indices to be disabled for a query #2937

Merged
merged 2 commits into from
Sep 26, 2024

Conversation

westonpace
Copy link
Contributor

There are some cases today where scalar indices can make query performance worse. This is usually when a scalar index search has many results (e.g. "x != 7"). Ideally, we will fix our planner to not use the scalar index in this case. However, even if we do that, there will probably be cases where it would be nice (for debugging purposes if nothing else) to be able to disable the scalar index for a query.

@github-actions github-actions bot added enhancement New feature or request python labels Sep 26, 2024
@westonpace westonpace merged commit 7cc14d9 into lancedb:main Sep 26, 2024
22 checks passed
ankitvij-db pushed a commit to ankitvij-db/lance that referenced this pull request Sep 26, 2024
There are some cases today where scalar indices can make query
performance worse. This is usually when a scalar index search has many
results (e.g. "x != 7"). Ideally, we will fix our planner to not use the
scalar index in this case. However, even if we do that, there will
probably be cases where it would be nice (for debugging purposes if
nothing else) to be able to disable the scalar index for a query.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants