فهرست منبع

HUE-6955 [metadata] Extend query suggest caching to 1 week

Romain Rigaux 8 سال پیش
والد
کامیت
9cc9adf
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

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

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

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

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

@@ -129,7 +129,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=3600000),
+      default=7 * 24 * 60 * 60 * 1000),
     AUTO_UPLOAD_QUERIES = Config(
       key="auto_upload_queries",
       help=_t("Automatically upload queries after their execution in order to improve recommendations."),