mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 21:12:28 +00:00
minor
This commit is contained in:
parent
68239075b7
commit
055efec1a0
@ -1146,7 +1146,8 @@ static std::tuple<ASTPtr, BlockIO> executeQueryImpl(
|
||||
std::chrono::system_clock::now() + std::chrono::seconds(settings.query_cache_ttl),
|
||||
settings.query_cache_compress_entries);
|
||||
|
||||
if (settings.query_cache_min_query_runs && query_cache->recordQueryRun(key) <= settings.query_cache_min_query_runs)
|
||||
const size_t num_query_runs = settings.query_cache_min_query_runs ? query_cache->recordQueryRun(key) : 1;
|
||||
if (num_query_runs <= settings.query_cache_min_query_runs)
|
||||
{
|
||||
LOG_TRACE(getLogger("QueryCache"),
|
||||
"Skipped insert because the query ran {} times but the minimum required number of query runs to cache the query result is {}",
|
||||
|
Loading…
Reference in New Issue
Block a user