v.24.12Improvement

Better memory usage approximation for cached marks in ClickHouse

Better memory usage approximation of cached marks to reduce total memory usage of the cache. #72630 (Antonio Andelic).
Improves the accuracy of memory usage estimation for cached marks in ClickHouse to optimize total cache memory consumption.

Why it matters

The feature addresses inefficiencies in how the memory usage of cached marks is approximated, which can lead to excessive memory allocation. By better estimating the memory used, ClickHouse can reduce overall memory consumption of the mark cache, leading to more efficient resource utilization and potentially improved query performance.

How to use it

The improved memory usage approximation is integrated internally within ClickHouse and does not require manual user intervention. Users benefit from reduced memory usage of the mark cache automatically after updating to the version containing this feature.