AWS Marketplace,Try Free with AWS
Skip to main content
Engineering

From Global Sorts to Sketches

This article explains how Databend combines KLL, Top-N, and Count-Min Sketch (CMS) to build optimizer statistics with lower `ANALYZE` overhead. Together, they balance histogram efficiency with accurate estimates for skewed and high-frequency values.

KKould
Jul 28, 2026
From Global Sorts to Sketches
732 S 6TH ST, STE R, Las Vegas, NV 89101, USA
SOC 2 Type IIGDPR
© 2026 Databend Cloud. All Rights Reserved.