From 4815333ea06c61cbf3cb2ac547d8b4156f17b7ae Mon Sep 17 00:00:00 2001 From: Zygimantas Benetis Date: Wed, 27 Mar 2024 10:57:31 +0200 Subject: [PATCH] boost: comments --- go/vt/vtgate/plan_execute.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/go/vt/vtgate/plan_execute.go b/go/vt/vtgate/plan_execute.go index 3865ffabad3..e4a93375b56 100644 --- a/go/vt/vtgate/plan_execute.go +++ b/go/vt/vtgate/plan_execute.go @@ -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 {