Skip to content

Commit

Permalink
planner: disable non-prep plan cache by default (#46504)
Browse files Browse the repository at this point in the history
close #36598
  • Loading branch information
qw4990 authored Aug 30, 2023
1 parent b6d6550 commit 61f8825
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion planner/core/plan_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import (
)

var (
// PlanCacheKeyTestIssue43667 is for test.
// PlanCacheKeyTestIssue43667 is only for test.
PlanCacheKeyTestIssue43667 struct{}
)

Expand Down
2 changes: 1 addition & 1 deletion sessionctx/variable/tidb_vars.go
Original file line number Diff line number Diff line change
Expand Up @@ -1310,7 +1310,7 @@ const (
DefTiDBEnableFastReorg = true
DefTiDBDDLDiskQuota = 100 * 1024 * 1024 * 1024 // 100GB
DefExecutorConcurrency = 5
DefTiDBEnableNonPreparedPlanCache = true
DefTiDBEnableNonPreparedPlanCache = false
DefTiDBEnableNonPreparedPlanCacheForDML = false
DefTiDBNonPreparedPlanCacheSize = 100
DefTiDBPlanCacheMaxPlanSize = 2 * size.MB
Expand Down

0 comments on commit 61f8825

Please sign in to comment.