From 49d77611c4e2ee8e6645dcbf4fd50800f19810cd Mon Sep 17 00:00:00 2001 From: Ti Chi Robot Date: Tue, 21 Jan 2025 12:30:26 +0800 Subject: [PATCH] statistics: reduce dumpStatsMaxDuration as 5min (#56538) (#58640) ref pingcap/tidb#56537 --- statistics/handle/update.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statistics/handle/update.go b/statistics/handle/update.go index 8e473eac217f9..829d962bb6c58 100644 --- a/statistics/handle/update.go +++ b/statistics/handle/update.go @@ -401,7 +401,7 @@ var ( // DumpStatsDeltaRatio is the lower bound of `Modify Count / Table Count` for stats delta to be dumped. DumpStatsDeltaRatio = 1 / 10000.0 // dumpStatsMaxDuration is the max duration since last update. - dumpStatsMaxDuration = time.Hour + dumpStatsMaxDuration = 5 * time.Minute ) // needDumpStatsDelta checks whether to dump stats delta.