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 the presentation Data processing into ClickHouse®, especially slides 17-22.