clickhouse-cpp icon indicating copy to clipboard operation
clickhouse-cpp copied to clipboard

Better estimation for ColumnLowCardinality::Reserve and ColumnString::Reserve

Open Enmk opened this issue 2 years ago • 1 comments

ColumnLowCardinality assumes that not all items are unique, hence dictionary column can be reserved for smaller capacity.

ColumnString now allows to set average value size estimation in constructor or on existing instance. If estimation is close to real average value size, then memory pre-allocations are close to optimum.

Added method MemoryUsage that provides insight on the amount of RAM used by column instance.

Enmk avatar Nov 16 '23 00:11 Enmk

Closing to re-open and to re-trigger CI/CD

Enmk avatar Nov 16 '23 15:11 Enmk