User
CollapsingMergeTree ( https://clickhouse.com/docs/en/engines/table-engines/mergetree-family/collapsingmergetree/ )не помог бы решить задачу?
CollapsingMergeTree ( https://clickhouse.com/docs/en/engines/table-engines/mergetree-family/collapsingmergetree/ )не помог бы решить задачу?