mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 07:01:59 +00:00
Simplier test
This commit is contained in:
parent
dbdaa76d41
commit
8ba6ed3fc2
@ -56,7 +56,7 @@ struct Settings;
|
||||
M(UInt64, write_ahead_log_interval_ms_to_fsync, 100, "Interval in milliseconds after which fsync for WAL is being done.", 0) \
|
||||
M(Bool, in_memory_parts_insert_sync, false, "If true insert of part with in-memory format will wait for fsync of WAL", 0) \
|
||||
M(UInt64, non_replicated_deduplication_window, 0, "How many last blocks of hashes should be kept on disk (0 - disabled).", 0) \
|
||||
M(UInt64, max_parts_to_merge_at_once, 100, "Max amout of parts which can be merged at once (0 - disabled). Doesn't affect OPTIMIZE FINAL query.", 0) \
|
||||
M(UInt64, max_parts_to_merge_at_once, 100, "Max amount of parts which can be merged at once (0 - disabled). Doesn't affect OPTIMIZE FINAL query.", 0) \
|
||||
\
|
||||
/** Inserts settings. */ \
|
||||
M(UInt64, parts_to_delay_insert, 150, "If table contains at least that many active parts in single partition, artificially slow down insert into table.", 0) \
|
||||
|
@ -88,7 +88,7 @@ class SimpleMergeSelector final : public IMergeSelector
|
||||
public:
|
||||
struct Settings
|
||||
{
|
||||
/// Zero means unlimited. Can be overriden by the same merge tree setting.
|
||||
/// Zero means unlimited. Can be overridden by the same merge tree setting.
|
||||
size_t max_parts_to_merge_at_once = 100;
|
||||
|
||||
/** Minimum ratio of size of one part to all parts in set of parts to merge (for usual cases).
|
||||
|
@ -1,2 +1,2 @@
|
||||
250
|
||||
100
|
||||
1
|
||||
|
@ -14,7 +14,7 @@ SETTINGS max_parts_to_merge_at_once = 3;
|
||||
|
||||
SYSTEM STOP MERGES limited_merge_table;
|
||||
|
||||
INSERT INTO limited_merge_table SELECT number FROM numbers(250);
|
||||
INSERT INTO limited_merge_table SELECT number FROM numbers(100);
|
||||
|
||||
SYSTEM START MERGES limited_merge_table;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user