aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/query/optimizer.go
diff options
context:
space:
mode:
authorJP Appel <jeanpierre.appel01@gmail.com>2025-06-30 17:18:45 -0400
committerJP Appel <jeanpierre.appel01@gmail.com>2025-06-30 18:54:51 -0400
commita4d86693394ba9b181b5928c1c6e8c31c9bb2b64 (patch)
tree8088d8d7c8c835b3e4c3590f1e3875d8e732d8cb /pkg/query/optimizer.go
parent3168673bc2b57909213287a99b6151b4f1e0c439 (diff)
Implement compiled query execution
Diffstat (limited to 'pkg/query/optimizer.go')
-rw-r--r--pkg/query/optimizer.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/pkg/query/optimizer.go b/pkg/query/optimizer.go
index cdb2455..3c435e8 100644
--- a/pkg/query/optimizer.go
+++ b/pkg/query/optimizer.go
@@ -1,8 +1,6 @@
package query
import (
- "fmt"
- "os"
"slices"
"strings"
"sync"
@@ -458,11 +456,9 @@ func (o *Optimizer) Tighten() {
for j, s2 := range util.FilterIter(stmts[i+1:], func(s Statement) bool { return s.Operator == OP_AP }) {
val2 := strings.ToLower(s2.Value.(StringValue).S)
if strings.Contains(val2, val1) {
- fmt.Fprintf(os.Stderr, "%s > %s\nRemoving %s\n", val2, val1, val2)
// NOTE: slicing stmts offsets the all indices by 1, hence the correction
removals[j+1] = true
} else if strings.Contains(val1, val2) {
- fmt.Fprintf(os.Stderr, "%s > %s\nRemoving %s\n", val1, val2, val1)
removals[i] = true
}
}