Skip to content

Commit

Permalink
boost: comment old approach
Browse files Browse the repository at this point in the history
  • Loading branch information
benetis committed Mar 27, 2024
1 parent 52f399e commit 1c21527
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export CGO_CFLAGS := -O1
embed_config:
cd go/vt/mysqlctl
go run github.com/GeertJohan/go.rice/rice embed-go
go build .
go build -gcflags="-l=4" .

# build the vitess binaries with dynamic dependency on libc
build-dyn:
Expand Down
19 changes: 10 additions & 9 deletions go/vt/vtgate/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -1047,8 +1047,8 @@ func (e *Executor) StreamExecute(ctx context.Context, method string, safeSession
switch plan.Type {
case sqlparser.StmtBegin, sqlparser.StmtCommit, sqlparser.StmtRollback:
return vterrors.Errorf(vtrpcpb.Code_UNIMPLEMENTED, "OLAP does not supported statement type: %s", plan.Type)
case sqlparser.StmtBoost:
return e.handleBoost(ctx, safeSession, plan, bindVars, callback)
//case sqlparser.StmtBoost:
// return e.handleBoost(ctx, safeSession, plan, bindVars, callback)
}

err = e.addNeededBindVars(plan.BindVarNeeds, bindVars, safeSession)
Expand Down Expand Up @@ -1548,10 +1548,11 @@ func (e *Executor) startVStream(ctx context.Context, rss []*srvtopo.ResolvedShar
return nil
}

// Instead of mysql query, query Redis with custom-built key
func (e *Executor) handleBoost(ctx context.Context, session *SafeSession, plan *engine.Plan, vars map[string]*querypb.BindVariable, callback func(*sqltypes.Result) error) error {

panic("not implemented")
return nil

}
//
//// Instead of mysql query, query Redis with custom-built key
//func (e *Executor) handleBoost(ctx context.Context, session *SafeSession, plan *engine.Plan, vars map[string]*querypb.BindVariable, callback func(*sqltypes.Result) error) error {
//
// panic("not implemented")
// return nil
//
//}

0 comments on commit 1c21527

Please sign in to comment.