From 3950256774b0ea8ad3c061eec9bdc588b2b10d8a Mon Sep 17 00:00:00 2001 From: JoyinQin <56883733+Joyinqin@users.noreply.github.com> Date: Mon, 17 Aug 2020 10:16:06 +0800 Subject: [PATCH 1/3] Update system-variables.md --- system-variables.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/system-variables.md b/system-variables.md index bc538e4673b70..747811825b4c7 100644 --- a/system-variables.md +++ b/system-variables.md @@ -61,6 +61,12 @@ SET GLOBAL tidb_distsql_scan_concurrency = 10; - Default value: 0 - This variable is used to show whether the execution plan used in the previous `execute` statement is taken directly from the plan cache. +### last_plan_from_binding New in v4.0 + +- Scope: SESSION +- Default value: 0 +- This variable is used to show whether the execution plan used in the previous `execute` statement is from binding. + ### max_execution_time - Scope: SESSION | GLOBAL From 7e8f3ebb78bb113383a369751cb3ad3f1e728009 Mon Sep 17 00:00:00 2001 From: JoyinQin <56883733+Joyinqin@users.noreply.github.com> Date: Mon, 17 Aug 2020 10:37:15 +0800 Subject: [PATCH 2/3] Update system-variables.md --- system-variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system-variables.md b/system-variables.md index 747811825b4c7..54f7939cb4aa5 100644 --- a/system-variables.md +++ b/system-variables.md @@ -65,7 +65,7 @@ SET GLOBAL tidb_distsql_scan_concurrency = 10; - Scope: SESSION - Default value: 0 -- This variable is used to show whether the execution plan used in the previous `execute` statement is from binding. +- This variable is used to show whether the execution plan used in the previous `execute` statement is from the plan binding. ### max_execution_time From 72eb888ca575ea71191b76b806933aa52d76c80b Mon Sep 17 00:00:00 2001 From: JoyinQ <56883733+Joyinqin@users.noreply.github.com> Date: Tue, 18 Aug 2020 12:28:40 +0800 Subject: [PATCH 3/3] Apply suggestions from code review Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com> --- system-variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system-variables.md b/system-variables.md index b6fdabd7ac537..388ab1922f85c 100644 --- a/system-variables.md +++ b/system-variables.md @@ -65,7 +65,7 @@ SET GLOBAL tidb_distsql_scan_concurrency = 10; - Scope: SESSION - Default value: 0 -- This variable is used to show whether the execution plan used in the previous `execute` statement is from the plan binding. +- This variable is used to show whether the execution plan used in the previous statement was influenced by a [plan binding](/sql-plan-management.md) ### max_execution_time