Query is resubmitting to trino in every hour #29735
Replies: 1 comment 1 reply
-
|
Hey @Ratan-jeet! I'm here to help you with any bugs, questions, or contributions you have. Let's tackle this issue together! Yes, you can change the Here is the relevant part of the configuration: <StyledInputContainer>
<div className="control-label">{t('Schema cache timeout')}</div>
<div className="input-container">
<input
type="number"
name="schema_cache_timeout"
value={extraJson?.metadata_cache_timeout?.schema_cache_timeout || ''}
placeholder={t('Enter duration in seconds')}
onChange={onExtraInputChange}
data-test="schema-cache-timeout-test"
/>
</div>
<div className="helper">
{t(
'Duration (in seconds) of the metadata caching timeout for schemas of ' +
'this database. If left unset, the cache never expires.',
)}
</div>
</StyledInputContainer>
<StyledInputContainer>
<div className="control-label">{t('Table cache timeout')}</div>
<div className="input-container">
<input
type="number"
name="table_cache_timeout"
value={extraJson?.metadata_cache_timeout?.table_cache_timeout || ''}
placeholder={t('Enter duration in seconds')}
onChange={onExtraInputChange}
data-test="table-cache-timeout-test"
/>
</div>
<div className="helper">
{t(
'Duration (in seconds) of the metadata caching timeout for tables of ' +
'this database. If left unset, the cache never expires. ',
)}
</div>
</StyledInputContainer>You can set these values to a higher duration to reduce the frequency of queries being resubmitted [1]. Additionally, if you want to limit the timed refresh on a dashboard, you can add the {
"filter_immune_slices": [],
"expanded_slices": {},
"filter_immune_slice_fields": {},
"timed_refresh_immune_slices": [324]
}In the example above, if a timed refresh is set for the dashboard, then every slice except 324 will be automatically re-queried on schedule [2]. Moreover, you can also configure the # Configuration for scheduling queries from SQL Lab.
SCHEDULED_QUERIES: dict[str, Any] = {}By adjusting these configurations, you can better control the frequency of query resubmissions to Trino [3]. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
While Running a query from Apache Superset which is taking time more than one hour
Superset is re triggering the same query again to the trino and old query is also running simultaneously
Is there any configuration to change/ add / update for the same

Beta Was this translation helpful? Give feedback.
All reactions