通过分层分区和定制优化将包查询扩展到十亿级元组
Scaling Package Queries to a Billion Tuples via Hierarchical Partitioning and Customized Optimization
AI总结:
本文提出渐进着色算法,通过分层分区和定制ILP/LP求解器,将包查询高效扩展到十亿级元组,并优雅处理严格约束,优于SketchRefine。
摘要:
包查询返回一个包(即元组的多重集),该包在线性约束下最大化或最小化线性目标函数,从而支持数据库内的决策支持。先前的工作已确立了包查询与整数线性规划(ILP)的等价性,并开发了用于包查询处理的SketchRefine算法。虽然该算法是在关系数据库内可扩展地支持规范分析的重要第一步,但当数据规模增长到超过数亿个元组或约束变得非常严格时,它便难以应对。在本文中,我们提出了渐进着色(Progressive Shading),一种用于处理包查询的新算法,该算法能够高效扩展到数十亿个元组,并优雅地处理严格约束。渐进着色在关系层次结构上求解一系列优化问题,每个关系由原始元组不断细分为同质组而产生,直到获得原始关系。该策略避免了SketchRefine可能过早丢弃高质量元组的问题。我们新颖的分区方案——动态低方差(Dynamic Low Variance),能够处理具有多个属性的非常大的关系,并能动态适应集中和分散的属性值集合,经证明在性能上优于KD树等传统分区方案。我们进一步通过用定制的ILP和LP求解器(分别称为Dual Reducer和Parallel Dual Simplex)替换现成的优化软件来优化我们的系统,这些求解器高度精确且速度快了几个数量级。
英文摘要:
A package query returns a package - a multiset of tuples - that maximizes or minimizes a linear objective function subject to linear constraints, thereby enabling in-database decision support. Prior work has established the equivalence of package queries to Integer Linear Programs (ILPs) and developed the SketchRefine algorithm for package query processing. While this algorithm was an important first step toward supporting prescriptive analytics scalably inside a relational database, it struggles when the data size grows beyond a few hundred million tuples or when the constraints become very tight. In this paper, we present Progressive Shading, a novel algorithm for processing package queries that can scale efficiently to billions of tuples and gracefully handle tight constraints. Progressive Shading solves a sequence of optimization problems over a hierarchy of relations, each resulting from an ever-finer partitioning of the original tuples into homogeneous groups until the original relation is obtained. This strategy avoids the premature discarding of high-quality tuples that can occur with SketchRefine. Our novel partitioning scheme, Dynamic Low Variance, can handle very large relations with multiple attributes and can dynamically adapt to both concentrated and spread-out sets of attribute values, provably outperforming traditional partitioning schemes such as KD-tree. We further optimize our system by replacing our off-the-shelf optimization software with customized ILP and LP solvers, called Dual Reducer and Parallel Dual Simplex respectively, that are highly accurate and orders of magnitude faster.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。