Skip to content

Commit

Permalink
*: remove useless code
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <[email protected]>
  • Loading branch information
hawkingrei committed Jan 5, 2024
1 parent 4a26724 commit 2268010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/statistics/handle/autoanalyze/autoanalyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ func tryAutoAnalyzeTable(
sql string,
params ...interface{},
) bool {
// 1. If the stats are not loaded, we don't need to analyze it.
// 1. If the statistics are either not loaded or are classified as pseudo, there is no need for analyze
// 2. If the table is too small, we don't want to waste time to analyze it.
// Leave the opportunity to other bigger tables.
if statsTbl == nil || statsTbl.RealtimeCount < AutoAnalyzeMinCnt || statsTbl.Pseudo {
Expand Down

0 comments on commit 2268010

Please sign in to comment.