基于矩的高基数分位数聚集算法
Moment-Based Quantile Sketches for Efficient High Cardinality Aggregation Queries
摘要:
交互式分析越来越多地涉及查询高基数数据集的子群体的分位数。Druid和Spark等数据处理引擎使用可合并的汇总来估计分位数,但汇总合并时间可能是聚合过程中的瓶颈。我们展示了一个紧凑和高效的可合并的分位数草图可以支持聚合工作负载。这种数据结构,我们称之为矩草图,通过仅跟踪一组汇总统计数据(特别是样本矩),以小的内存占用(200字节)和计算效率(50 ns)进行合并。我们演示了如何使用矩方法和最大熵原理来有效和实际地估计分位数,并展示了如何使用级联进一步提高阈值谓词的查询时间。对真实世界数据集的实证评估表明,矩草图可以实现小于1%的错误,合并开销比可比摘要少15倍,MacroBase引擎中的最终查询时间最多可缩短7倍,Druid引擎最多可缩短60倍。
英文摘要:
Interactive analytics increasingly involves querying for quantiles over sub-populations of high cardinality datasets. Data processing engines such as Druid and Spark use mergeable summaries to estimate quantiles, but summary merge times can be a bottleneck during aggregation. We show how a compact and efficiently mergeable quantile sketch can support aggregation workloads. This data structure, which we refer to as the moments sketch, operates with a small memory footprint (200 bytes) and computationally efficient (50ns) merges by tracking only a set of summary statistics, notably the sample moments. We demonstrate how we can efficiently and practically estimate quantiles using the method of moments and the maximum entropy principle, and show how the use of a cascade further improves query time for threshold predicates. Empirical evaluation on real-world datasets shows that the moments sketch can achieve less than 1 percent error with 15 times less merge overhead than comparable summaries, improving end query time in the MacroBase engine by up to 7 times and the Druid engine by up to 60 times.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。