To Iterate Is Human, to Recurse Is Divine --- Mapping Iterative Python to Recursive SQL
Loading...
Fulltext URI
Document type
Text/Conference Paper
Files
Additional Information
Date
2023
Authors
Journal Title
Journal ISSN
Volume Title
Source
Publisher
Gesellschaft für Informatik e.V.
Abstract
Writing complex algorithms and iterative computations in SQL is difficult at best, commonly leading to code that intermingles looping control flow with database access. This yields programs with control flow that rapidly hops in and out of the database, with each roundtrip incurring significant overhead. We present the ByePy compiler, which can compile entire Python functions directly to plain recursive SQL:1999 queries. By doing so, the compilation eliminates all but a single roundtrip, leading to runtime speedups of up to an order of magnitude.
Description
Keywords
SQL, Python, Compilation
Citation
Endorsement
Review
Supplemented By
Referenced By
Show citations