arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2202.10390cs.DB
收藏

用程序合成优化递归搜索

Optimizing Recursive Queries with Program Synthesis

Yisu Remy Wang, Mahmoud Abo Khamis, Hung Q. Ngo, Reinhard Pichler, Dan Suciu

摘要:

查询优化的大部分工作都集中在无循环查询上。然而,如今的数据科学和机器学习工作负载通常涉及递归或迭代计算。在这项工作中,我们提出了一个新的框架优化递归查询使用的方法从程序合成。特别是,我们引入了一个简单而强大的优化规则称为“FGH规则”,其目的是找到一个更快的方法来评估递归程序。该解决方案是通过使用强大的工具,如程序合成器,SMT求解器,和一个等式饱和系统。我们展示了优化的强度,通过显示,FGH规则可以导致加速高达4个数量级的三个,已经优化的数据库系统。

英文摘要:

Most work on query optimization has concentrated on loop-free queries. However, data science and machine learning workloads today typically involve recursive or iterative computation. In this work, we propose a novel framework for optimizing recursive queries using methods from program synthesis. In particular, we introduce a simple yet powerful optimization rule called the "FGH-rule" which aims to find a faster way to evaluate a recursive program. The solution is found by making use of powerful tools, such as a program synthesizer, an SMT-solver, and an equality saturation system. We demonstrate the strength of the optimization by showing that the FGH-rule can lead to speedups up to 4 orders of magnitude on three, already optimized Datalog systems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑