This is an automated email from the ASF dual-hosted git repository. morrysnow pushed a commit to branch branch-2.0 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push: new ffd6318d2b6 [fix](statistics) fix not master fe first query cost long time (#26740) ffd6318d2b6 is described below commit ffd6318d2b60a9908104e96b06b83b7f1462706e Author: ryanzryu <143597717+ryanz...@users.noreply.github.com> AuthorDate: Wed Jan 31 18:46:17 2024 +0800 [fix](statistics) fix not master fe first query cost long time (#26740) call StatisticsCache.preHeat() for transferToNonMaster. then the not master fe will cache all table's statistics. so that first query will cost a normal time. --- fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java b/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java index f16871aaa64..1fe294b5a6b 100755 --- a/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java +++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java @@ -1564,6 +1564,10 @@ public class Env { MetricRepo.init(); + if (analysisManager != null) { + analysisManager.getStatisticsCache().preHeat(); + } + // stop mtmv scheduler mtmvJobManager.stop(); } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org