Conference Paper

To Iterate Is Human, to Recurse Is Divine --- Mapping Iterative Python to Recursive SQL

Loading...
Thumbnail Image

Fulltext URI

Document type

Text/Conference Paper

Additional Information

Date

2023

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

Fischer, Tim (2023): To Iterate Is Human, to Recurse Is Divine --- Mapping Iterative Python to Recursive SQL. BTW 2023. DOI: 10.18420/BTW2023-73. Bonn: Gesellschaft für Informatik e.V.. ISBN: 978-3-88579-725-8. pp. 1069-1074. Dresden, Germany. 06.-10. März 2023

Keywords

SQL, Python, Compilation

Citation

Endorsement

Review

Supplemented By

Referenced By

Show citations