You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by ni...@apache.org on 2020/02/07 14:26:39 UTC
[kylin] 44/44: statement cache eviction invalidation base on time
This is an automated email from the ASF dual-hosted git repository.
nic pushed a commit to branch 3.0.x
in repository https://gitbox.apache.org/repos/asf/kylin.git
commit ef1e63c4cff83d4e83ddcc46a41b07bc998fc126
Author: mrzhao <76...@qq.com>
AuthorDate: Mon Jan 20 10:40:25 2020 +0800
statement cache eviction invalidation base on time
---
.../src/main/java/org/apache/kylin/rest/service/QueryService.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/server-base/src/main/java/org/apache/kylin/rest/service/QueryService.java b/server-base/src/main/java/org/apache/kylin/rest/service/QueryService.java
index 0ce8379..652cbfc 100644
--- a/server-base/src/main/java/org/apache/kylin/rest/service/QueryService.java
+++ b/server-base/src/main/java/org/apache/kylin/rest/service/QueryService.java
@@ -180,6 +180,7 @@ public class QueryService extends BasicService {
config.setMaxTotal(kylinConfig.getQueryMaxCacheStatementNum());
config.setBlockWhenExhausted(false);
config.setMinEvictableIdleTimeMillis(10 * 60 * 1000L); // cached statement will be evict if idle for 10 minutes
+ config.setTimeBetweenEvictionRunsMillis(60 * 1000L);
GenericKeyedObjectPool<PreparedContextKey, PreparedContext> pool = new GenericKeyedObjectPool<>(factory,
config);
return pool;