浏览代码

HUE-6412 [optimizer] Set caching to 1hour

Romain Rigaux 8 年之前
父节点
当前提交
51ec0dd
共有 3 个文件被更改,包括 5 次插入5 次删除
  1. 2 2
      desktop/conf.dist/hue.ini
  2. 2 2
      desktop/conf/pseudo-distributed.ini.tmpl
  3. 1 1
      desktop/libs/metadata/src/metadata/conf.py

+ 2 - 2
desktop/conf.dist/hue.ini

@@ -1653,8 +1653,8 @@
     ## apply_sentry_permissions=False
 
     # Cache timeout in milliseconds for the Optimizer metadata used in assist, autocomplete, etc.
-    # defaults to 43200000 (12 hours), set to 0 to disable caching.
-    # cacheable_ttl=43200000
+    # Defaults to 1 hour, set to 0 to disable caching.
+    ## cacheable_ttl=3600000
 
     # Automatically upload queries after their execution in order to improve recommendations.
     ## auto_upload_queries=true

+ 2 - 2
desktop/conf/pseudo-distributed.ini.tmpl

@@ -1657,8 +1657,8 @@
     ## apply_sentry_permissions=False
 
     # Cache timeout in milliseconds for the Optimizer metadata used in assist, autocomplete, etc.
-    # defaults to 43200000 (12 hours), set to 0 to disable caching.
-    # cacheable_ttl=43200000
+    # Defaults to 1 hour, set to 0 to disable caching.
+    ## cacheable_ttl=3600000
 
     # Automatically upload queries after their execution in order to improve recommendations.
     ## auto_upload_queries=true

+ 1 - 1
desktop/libs/metadata/src/metadata/conf.py

@@ -118,7 +118,7 @@ OPTIMIZER = ConfigSection(
       key='cacheable_ttl',
       type=int,
       help=_t('The cache TTL in milliseconds for the assist/autocomplete/etc calls. Set to 0 to disable the cache.'),
-      default=43200000),
+      default=3600000),
     AUTO_UPLOAD_QUERIES = Config(
       key="auto_upload_queries",
       help=_t("Automatically upload queries after their execution in order to improve recommendations."),