Skip to content

Commit

Permalink
Improved planner logic (#428)
Browse files Browse the repository at this point in the history
This is a an evolution of the index selection logic
that will allow us to add more improvements in the future.
This also adds support for using a composite index with multiple
IN operators.
  • Loading branch information
asdine authored Aug 6, 2021
1 parent 402b5a6 commit eb48596
Show file tree
Hide file tree
Showing 6 changed files with 582 additions and 469 deletions.
10 changes: 0 additions & 10 deletions internal/expr/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,6 @@ type Operator interface {
Token() scanner.Token
}

// OperatorIsIndexCompatible returns whether the operator can be used to read from an index.
func OperatorIsIndexCompatible(op Operator) bool {
switch op.Token() {
case scanner.EQ, scanner.GT, scanner.GTE, scanner.LT, scanner.LTE, scanner.IN:
return true
}

return false
}

type ConcatOperator struct {
*simpleOperator
}
Expand Down
Loading

0 comments on commit eb48596

Please sign in to comment.