From 74ea4a8a6f71e6067d9d8e7ab7b7e50e99eb38ed Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 12 Aug 2017 22:47:31 +0100 Subject: [PATCH] [Feature] Add gzip compression support for clickhouse module --- src/plugins/lua/clickhouse.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/lua/clickhouse.lua b/src/plugins/lua/clickhouse.lua index 77b10a51bd..87738c8afe 100644 --- a/src/plugins/lua/clickhouse.lua +++ b/src/plugins/lua/clickhouse.lua @@ -55,6 +55,7 @@ local settings = { from_tables = nil, enable_symbols = false, use_https = false, + use_gzip = true, } local clickhouse_schema = { @@ -262,6 +263,7 @@ local function clickhouse_send_data(task) url = connect_prefix .. settings['server'], body = body, callback = http_cb, + gzip = settings.use_gzip, mime_type = 'text/plain', timeout = settings['timeout'], }) then -- 2.47.3