Skip to content

Commit fb28e6a

Browse files
authored
Update compression-in-clickhouse.md
1 parent b64e5ff commit fb28e6a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/data-compression/compression-in-clickhouse.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ GROUP BY name
6363
```
6464

6565
<details>
66+
6667
<summary>A note on compact versus wide parts</summary>
68+
6769
If you are seeing `compressed_size` or `uncompressed_size` values equal to `0`, this could be because the type of the
6870
parts are `compact` and not `wide` (see description for `part_type` in [`system.parts`](/operations/system-tables/parts)).
6971
The part format is controlled by settings [`min_bytes_for_wide_part`](/operations/settings/merge-tree-settings#min_bytes_for_wide_part)
@@ -130,6 +132,7 @@ GROUP BY name;
130132
1. │ number │ 392.31 KiB │ 390.63 KiB │ 1 │
131133
└────────┴─────────────────┴───────────────────┴───────┘
132134
```
135+
133136
</details>
134137

135138
We show both a compressed and uncompressed size here. Both are important. The compressed size equates to what we will need to read off disk - something we want to minimize for query performance (and storage cost). This data will need to be decompressed prior to reading. The size of this uncompressed size will be dependent on the data type used in this case. Minimizing this size will reduce memory overhead of queries and the amount of data which has to be processed by the query, improving utilization of caches and ultimately query times.

0 commit comments

Comments
 (0)