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

sql: support "point" lookups using indexes #2140

Closed
petermattis opened this issue Aug 18, 2015 · 0 comments
Closed

sql: support "point" lookups using indexes #2140

petermattis opened this issue Aug 18, 2015 · 0 comments
Assignees
Milestone

Comments

@petermattis
Copy link
Collaborator

Currently the query planner only performs a single scan of a table or index (limiting the range of the scan when possible). Consider a query like SELECT * FROM foo WHERE bar IN (1, 2, 3, 4, 5). If an appropriate index is available, the query planner should perform "point" lookups of the index rows.

@petermattis petermattis self-assigned this Aug 18, 2015
@petermattis petermattis added this to the Beta milestone Aug 18, 2015
@jess-edwards jess-edwards mentioned this issue Aug 20, 2015
78 tasks
petermattis added a commit that referenced this issue Aug 28, 2015
petermattis added a commit that referenced this issue Aug 28, 2015
Index selection now creates multiple independent spans of the index that
must be scanned. Multiple spans are created for expressions like "a
IN (1, 2, 3)" and "a = 1 OR a = 2 or a = 3" (these are equivalent).

Fixes #2140.
See #2142.
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