v.19.5Improvement
Topk and Topkweighted Now Supports Custom Loadfactor
topKandtopKWeightednow supports customloadFactor(fixes issue #4252). #4634 (Kirill Danshin)
Why it matters
This feature addresses the limitation where theloadFactor parameter for topK and topKWeighted was fixed, allowing users to tune performance and memory consumption to better fit their workloads and data characteristics.How to use it
Users can specify theloadFactor parameter when using topK or topKWeighted functions in their queries to customize the behavior, for example:SELECT topK(10, loadFactor = 10)(column) FROM table;This enables tailoring the balance between accuracy and resource usage.**