Merge pull request #4041 from yandex/compiled_expressions_cache_memory_usage

CLICKHOUSE-4249: Limit compiled expressions cache size
This commit is contained in:
alexey-milovidov 2019-01-11 23:22:52 +03:00 committed by GitHub
commit f5271417ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -411,7 +411,7 @@ int Server::main(const std::vector<std::string> & /*args*/)
global_context->setMarkCache(mark_cache_size);
#if USE_EMBEDDED_COMPILER
size_t compiled_expression_cache_size = config().getUInt64("compiled_expression_cache_size", std::numeric_limits<UInt64>::max());
size_t compiled_expression_cache_size = config().getUInt64("compiled_expression_cache_size", 500);
if (compiled_expression_cache_size)
global_context->setCompiledExpressionCache(compiled_expression_cache_size);
#endif