Optimizing Recursive Queries with Progam Synthesis
Optimizing Recursive Queries with Progam Synthesis
复制标题
DOI:
10.1145/3514221.3517827
复制
发表时间:
2022-02
期刊:
影响因子:
--
通讯作者:
Y. Wang;Mahmoud Abo Khamis;H. Ngo;R. Pichler;Dan Suciu
中科院分区:
文献类型:
--
作者:
Y. Wang;Mahmoud Abo Khamis;H. Ngo;R. Pichler;Dan Suciu
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.