From 2ff0739e24240c64dd8f4ae1dc586296896a937a Mon Sep 17 00:00:00 2001 From: erda-bot <81558540+erda-bot@users.noreply.github.com> Date: Wed, 13 Oct 2021 14:05:13 +0800 Subject: [PATCH] optimize: log-query index-preload enabled by default (#1769) (#2358) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 郭刚平 <512979011@qq.com> --- modules/extensions/loghub/index/query/provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/extensions/loghub/index/query/provider.go b/modules/extensions/loghub/index/query/provider.go index e6dafd62a63..8f4775f876d 100644 --- a/modules/extensions/loghub/index/query/provider.go +++ b/modules/extensions/loghub/index/query/provider.go @@ -38,7 +38,7 @@ import ( type config struct { Timeout time.Duration `file:"timeout" default:"60s"` QueryBackES bool `file:"query_back_es" default:"false"` - IndexPreload bool `file:"index_preload" default:"false" env:"LOG_INDEX_PRELOAD"` + IndexPreload bool `file:"index_preload" default:"true" env:"LOG_INDEX_PRELOAD"` IndexPreloadInterval time.Duration `file:"index_preload_interval" default:"60s" env:"LOG_INDEX_PRELOAD_INTERVAL"` IndexFieldSettings struct { File string `file:"file"`