EasyVector / Issue-Feedback-Repo

0 stars 0 forks source link

sql: improve precision of index spans to scan for multi-column-family single-row fetches #53

Open EasyVector opened 4 years ago

EasyVector commented 4 years ago

Suppose we have a table and a query: CREATE TABLE a (a INT PRIMARY KEY, b INT, c INT, FAMILY(a), FAMILY(b), FAMILY(c); INSERT INTO a VALUES(1,2,3); SELECT b FROM a WHERE a=1; Currently, this query will cause a scan from /a/primary/1 -> /a/primary/2, even though ideally we'd only need to scan the key at /a/primary/1/b. We have enough information to improve this scan, since we know that c is not a needed column, a is the primary index and therefore unique, and we have an equality constraint on a. We should consider improving the algorithm in spanFromLogicalSpan to incorporate all of this information into its final output span. cc @danhhz @andreimatei @petermattis based on our earlier conversation.

issue-mula-labeler[bot] commented 4 years ago

MULA Label Bot automatically applied the label performance to this issue, with a confidence of 1.00. Please mark this comment with :thumbsup: or :thumbsdown: to send your feedback!

issue-mula-labeler[bot] commented 4 years ago

MULA Label Bot automatically applied the label enhancement to this issue, with a confidence of 1.00. Please mark this comment with :thumbsup: or :thumbsdown: to send your feedback!

issue-mula-labeler[bot] commented 4 years ago

MULA Label Bot automatically applied the label database to this issue, with a confidence of 1.00. Please mark this comment with :thumbsup: or :thumbsdown: to send your feedback!

issue-mula-labeler[bot] commented 4 years ago

MULA Label Bot is not confident enough to apply the label bug to this issue, with a confidence of 0.27..

issue-mula-labeler[bot] commented 4 years ago

MULA Label Bot is not confident enough to apply the label ui to this issue, with a confidence of 0.23..

issue-mula-labeler[bot] commented 4 years ago

MULA Label Bot is not confident enough to apply the label question to this issue, with a confidence of 0.10..

issue-mula-labeler[bot] commented 4 years ago

MULA Label Bot is not confident enough to apply the label design to this issue, with a confidence of 0.07..

issue-mula-labeler[bot] commented 4 years ago

MULA Label Bot is not confident enough to apply the label client to this issue, with a confidence of 0.01..

issue-mula-labeler[bot] commented 4 years ago

MULA Label Bot is not confident enough to apply the label server to this issue, with a confidence of 0.01..

issue-mula-labeler[bot] commented 4 years ago

MULA Label Bot is not confident enough to apply the label security to this issue, with a confidence of 0.00..

issue-mula-labeler[bot] commented 4 years ago

MULA Label Bot is not confident enough to apply the label document to this issue, with a confidence of 0.00..