diff --git a/session/bootstrap.go b/session/bootstrap.go index 3177859c45da5..1fdb93b58ff0e 100644 --- a/session/bootstrap.go +++ b/session/bootstrap.go @@ -1659,6 +1659,8 @@ func upgradeToVer80(s Session, ver int64) { mysql.SystemDB, mysql.GlobalVariablesTable, variable.TiDBAnalyzeVersion, 1) } +// For users that upgrade TiDB from a pre-4.0 version, we want to disable index merge by default. +// This helps minimize query plan regressions. func upgradeToVer81(s Session, ver int64) { if ver >= version81 { return