数据库查询处理中的偏移值编码
Offset-value coding in database query processing
摘要:
最近的工作展示了偏移值编码如何加速数据库查询执行,不仅是排序,还包括重复删除和分组(聚合),排序流,保序交换(洗牌),合并连接等。它已经在谷歌的纳帕和F1查询系统中节省了数千个CPU,在分组算法和日志结构的合并森林。然而,为了实现有趣的排序的全部好处,查询执行算法不仅必须消耗和利用偏移值代码,而且还必须为管道中的下一个操作符产生偏移值代码。我们的研究一直在寻找产生偏移值代码的方法,而不需要逐个、逐列地比较连续的输出行。这篇简短的论文介绍了一个新的定理,并根据其证明和一个简单的推论,详细描述了保序算法(从过滤器到合并连接,甚至洗牌)如何计算其输出的偏移值代码。这些计算出奇地简单和高效。
英文摘要:
Recent work shows how offset-value coding speeds up database query execution, not only sorting but also duplicate removal and grouping (aggregation) in sorted streams, order-preserving exchange (shuffle), merge join, and more. It already saves thousands of CPUs in Google's Napa and F1 Query systems, e.g., in grouping algorithms and in log-structured merge-forests. In order to realize the full benefit of interesting orderings, however, query execution algorithms must not only consume and exploit offset-value codes but also produce offset-value codes for the next operator in the pipeline. Our research has sought ways to produce offset-value codes without comparing successive output rows one-by-one, column-by-column. This short paper introduces a new theorem and, based on its proof and a simple corollary, describes in detail how order-preserving algorithms (from filter to merge join and even shuffle) can compute offset-value codes for their outputs. These computations are surprisingly simple and very efficient.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。