Skip to content

Commit

Permalink
boost: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
benetis committed Mar 27, 2024
1 parent fa63dac commit 4815333
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion go/vt/vtgate/plan_execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,13 @@ func (e *Executor) newExecute(ctx context.Context, safeSession *SafeSession, sql
e.executePlan(ctx, plan, vcursor, bindVars, execStart))
}

return e.executePlan(ctx, plan, vcursor, bindVars, execStart)(logStats, safeSession)
// Check if boosted and hit Redis

statementTypeResult, sqlResult, err := e.executePlan(ctx, plan, vcursor, bindVars, execStart)(logStats, safeSession)

// Maybe store in Redis here if boosted, but cache miss

return statementTypeResult, sqlResult, err
}

func (e *Executor) startTxIfNecessary(ctx context.Context, safeSession *SafeSession) error {
Expand Down

0 comments on commit 4815333

Please sign in to comment.