ClickHouse/src/Storages/Distributed
Azat Khuzhin fcf49a4914 Distributed: Calculate counters for async INSERT at INSERT time
Previous patch fixes the inaccuracy, but it's done using iterating over
directory on each request (to system.distribution_queue or to check
bytes_to_throw_insert), and like previous patch alredy stated, it may
have pretty huge overhead (especially when you have lots of distributed
files pending).

This patch remove that recalculation (but it will still be done, and
if there is different, there will be a log message), and replace it with
proper account at INSERT time (and after file has been sent, or marked
as broken).
2021-03-03 23:30:03 +03:00
..
DirectoryMonitor.cpp Distributed: Calculate counters for async INSERT at INSERT time 2021-03-03 23:30:03 +03:00
DirectoryMonitor.h Distributed: Calculate counters for async INSERT at INSERT time 2021-03-03 23:30:03 +03:00
DistributedBlockOutputStream.cpp Distributed: Calculate counters for async INSERT at INSERT time 2021-03-03 23:30:03 +03:00
DistributedBlockOutputStream.h add setting insert_shard_id 2021-02-02 04:26:59 +00:00
DistributedSettings.cpp Add fsync support for Distributed engine. 2021-01-09 11:31:32 +03:00
DistributedSettings.h Distributed: Add ability to limit amount of pending bytes for async INSERT 2021-03-03 23:30:00 +03:00