Skip to content

Commit 49d7761

Browse files
authored
statistics: reduce dumpStatsMaxDuration as 5min (#56538) (#58640)
ref #56537
1 parent e9a1f7f commit 49d7761

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

statistics/handle/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ var (
401401
// DumpStatsDeltaRatio is the lower bound of `Modify Count / Table Count` for stats delta to be dumped.
402402
DumpStatsDeltaRatio = 1 / 10000.0
403403
// dumpStatsMaxDuration is the max duration since last update.
404-
dumpStatsMaxDuration = time.Hour
404+
dumpStatsMaxDuration = 5 * time.Minute
405405
)
406406

407407
// needDumpStatsDelta checks whether to dump stats delta.

0 commit comments

Comments
 (0)