Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*: open auto analyze by default #4722

Merged
merged 3 commits into from Oct 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/config.go
Expand Up @@ -115,7 +115,7 @@ var defaultConf = Config{
JoinConcurrency: 5,
CrossJoin: true,
StatsLease: "3s",
RunAutoAnalyze: false,
RunAutoAnalyze: true,
},
XProtocol: XProtocol{
XHost: "0.0.0.0",
Expand Down
2 changes: 1 addition & 1 deletion config/config.toml.example
Expand Up @@ -100,7 +100,7 @@ cross-join = true
stats-lease = "3s"

# Run auto analyze worker on this tidb-server.
run-auto-analyze = false
run-auto-analyze = true

[xprotocol]
# Start TiDB x server.
Expand Down
2 changes: 1 addition & 1 deletion domain/domain.go
Expand Up @@ -541,7 +541,7 @@ func (do *Domain) CreateStatsHandle(ctx context.Context) {
}

// RunAutoAnalyze indicates if this TiDB server starts auto analyze worker and can run auto analyze job.
var RunAutoAnalyze = false
var RunAutoAnalyze = true

// UpdateTableStatsLoop creates a goroutine loads stats info and updates stats info in a loop.
// It will also start a goroutine to analyze tables automatically.
Expand Down