JOURNAL ARTICLE

Optimizing Recursive Queries with Progam Synthesis

Yisu Remy WangMahmoud Abo KhamisHung Q. NgoReinhard PichlerDan Suciu

Year: 2022 Journal:   Proceedings of the 2022 International Conference on Management of Data Pages: 79-93

Abstract

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.

Keywords:
Computer science Datalog Computation Solver Simple (philosophy) Theoretical computer science Programming language

Metrics

7
Cited By
1.75
FWCI (Field Weighted Citation Impact)
38
Refs
0.81
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Advanced Database Systems and Queries
Physical Sciences →  Computer Science →  Computer Networks and Communications
Data Management and Algorithms
Physical Sciences →  Computer Science →  Signal Processing
Scientific Computing and Data Management
Social Sciences →  Decision Sciences →  Information Systems and Management

Related Documents

JOURNAL ARTICLE

Optimizing Nested Recursive Queries

Amir ShaikhhaDan SuciuMaximilian SchleichHung Q. Ngo

Journal:   Proceedings of the ACM on Management of Data Year: 2024 Vol: 2 (1)Pages: 1-27
JOURNAL ARTICLE

Optimizing recursive queries in SQL

Carlos Ordońẽz

Year: 2005 Pages: 834-839
JOURNAL ARTICLE

Optimizing differentially-maintained recursive queries on dynamic graphs

Khaled AmmarSiddhartha SahuSemih SalihoğluM. TAMER ÖZSU

Journal:   Proceedings of the VLDB Endowment Year: 2022 Vol: 15 (11)Pages: 3186-3198
BOOK-CHAPTER

Usable Recursive Queries

Tomasz PieciukiewiczKrzysztof StencelKazimierz Subieta

Lecture notes in computer science Year: 2005 Pages: 17-28
© 2026 ScienceGate Book Chapters — All rights reserved.