Browse Source

HUE-6412 [optimizer] Lower cache TTL to a few hours

Romain Rigaux 8 năm trước cách đây
mục cha
commit
e2b2e38

+ 1 - 1
apps/about/src/about/templates/admin_wizard.mako

@@ -94,7 +94,7 @@ ${ layout.menubar(section='quick_start') }
                   <li>
                     <a href="javascript:void(0)" class="installBtn" data-loading-text="${ _('Uploading...') }"
                        data-sample-url="${ url('metadata:upload_history') }" title="${ _('Send and analyze past %s executed queries to provide smarter SQL recommendations') % OPTIMIZER.QUERY_HISTORY_UPLOAD_LIMIT.get() }">
-                      <i class="fa fa-upload"></i> ${ _('SQL Query history') }
+                      <i class="fa fa-download"></i> ${ _('SQL Query history') }
                     </a>
                   </li>
               % endif

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

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

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

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

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

@@ -114,7 +114,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=432000000),
+      default=43200000),
     AUTO_UPLOAD_QUERIES = Config(
       key="auto_upload_queries",
       help=_t("Automatically upload queries after their execution in order to improve recommendations."),