Data types on disk and in RAM
DataType | RAM size (=byteSize) | Disk Size |
---|---|---|
String | string byte length + 9 string length: 64 bit integer zero-byte terminator: 1 byte. | string length prefix (varint) + string itself:
|
AggregateFunction(count, ...) | varint |
See also https://github.com/ClickHouse/clickhouse-presentations/blob/master/meetup41/data_processing.pdf (slide 17-22)
Last modified 2021.08.12: General corrections and updates. (876b7b6)