mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Refined comment. [#CLICKHOUSE-2]
This commit is contained in:
parent
bfd11656d1
commit
0b82551829
@ -105,7 +105,8 @@ BlockIO InterpreterInsertQuery::execute()
|
|||||||
out = std::make_shared<AddingDefaultBlockOutputStream>(
|
out = std::make_shared<AddingDefaultBlockOutputStream>(
|
||||||
out, getSampleBlock(query, table), required_columns, table->column_defaults, context);
|
out, getSampleBlock(query, table), required_columns, table->column_defaults, context);
|
||||||
|
|
||||||
/// Do not squash blocks if it is a sync INSERT into Distributed
|
/// Do not squash blocks if it is a sync INSERT into Distributed, since it lead to double bufferization on client and server side.
|
||||||
|
/// Client-side bufferization might cause excessive timeouts (especially in case of big blocks).
|
||||||
if (!(context.getSettingsRef().insert_distributed_sync && table->getName() == "Distributed"))
|
if (!(context.getSettingsRef().insert_distributed_sync && table->getName() == "Distributed"))
|
||||||
{
|
{
|
||||||
out = std::make_shared<SquashingBlockOutputStream>(
|
out = std::make_shared<SquashingBlockOutputStream>(
|
||||||
|
Loading…
Reference in New Issue
Block a user