v.21.6Improvement

FlatDictionary Enhances Initial and Max Array Size Options

FlatDictionary added initial_array_size, max_array_size options. #22521 (Maksim Kita).
Added initial_array_size and max_array_size configuration options to the FlatDictionary in ClickHouse.

Why it matters

These options allow users to control the initial and maximum sizes of internal arrays used by FlatDictionary, optimizing memory allocation and improving performance for dictionary lookups especially when the expected sizes are known or can be constrained.

How to use it

In the FlatDictionary configuration, set the initial_array_size and max_array_size parameters to appropriate values according to your data size and expected usage patterns. This enables fine-tuned memory management for dictionary lookup operations.