Back to papers
One WITH RECURSIVE is Worth Many GOTOs
Summary: Translates PL/SQL UDFs into SQL queries, moving evaluation entirely to SQL. Uses trampolined nesting to map control flow to recursive CTEs, eliminating imperative-declarative friction and yielding ~2x speedups, exposing cross-world interpretation.
(summarized by gpt-5-nano on Feb 09 2026)
Paper ID
6225
Venue
SIGMOD
Year
2021
Pagerank
7.590651e-05
Overall Rank
3,257 | 77.66%
DOI
10.1145/3448016.3457272
Incoming Non-self Citations Over Time
BibTeX Citation
Copy BibTeX
@inproceedings{hirn_sigmod21,
title = {{One WITH RECURSIVE is Worth Many GOTOs}},
author = {Hirn, Denis and Grust, Torsten},
series = {{SIGMOD} '21},
booktitle = {Proceedings of the {ACM} {SIGMOD} International Conference on Management of Data},
publisher = {Association for Computing Machinery},
doi = {10.1145/3448016.3457272},
url = {https://dl.acm.org/doi/10.1145/3448016.3457272},
year = {2021}
}
Incoming Citations (Sorted by Pagerank)
Showing 16 of 16 citing papers.
Rank
Citing Paper
Year
Venue
Pagerank
4,253
Efficient and Portable Einstein Summation in SQL
2023
SIGMOD
6.8029311e-05
4,273
User-Defined Operators: Efficiently Integrating Custom Algorithms into Modern Databases
2022
VLDB
6.7909197e-05
5,684
Snakes on a Plan: Compiling Python Functions into Plain SQL Queries
2022
SIGMOD
6.1224825e-05
6,015
Dear User-Defined Functions, Inlining isn't working out so great for us. Let's try batching to make our relationship work. Sincerely, SQL
2024
CIDR
6.008272e-05
6,604
Machine Learning, Linear Algebra, and More: Is SQL All You Need?
2022
CIDR
5.8240599e-05
7,058
BOSS - An Architecture for Database Kernel Composition
2024
VLDB
5.7154673e-05
9,415
The Key to Effective UDF Optimization: Before Inlining, First Perform Outlining
2025
VLDB
5.2742285e-05
9,456
QURE: AI-Assisted and Automatically Verified UDF Inlining
2025
SIGMOD
5.2643416e-05
9,808
Trampoline-Style Queries for SQL
2025
CIDR
5.214913e-05
9,833
A Fix for the Fixation on Fixpoints
2023
CIDR
5.2115442e-05
9,960
Optimizing Nested Recursive Queries
2024
SIGMOD
5.1879626e-05
10,040
SQL Engines Excel at the Execution of Imperative Programs
2024
VLDB
5.1723558e-05
10,690
Dynamic Pruning for Recursive Joins
2025
SIGMOD
5.093636e-05
10,751
Approximating Opaque Top-k Queries
2025
SIGMOD
5.093636e-05
10,957
Towards Designing Future-Proof Data Processing Systems
2025
VLDB
5.093636e-05
11,487
To UDFs and Beyond: Demonstration of a Fully Decomposed Data Processor for General Data Wrangling Tasks
2023
VLDB
5.093636e-05
Outgoing Citations (Sorted by Pagerank)
Showing 17 of 17 cited papers.
Citations counted here include only citations to other VLDB/SIGMOD/CIDR/PODS papers in this database.
Rank
Cited Paper
Year
Venue
Pagerank
23
Efficiently Compiling Efficient Query Plans for Modern Hardware
2011
VLDB
0.00054886415
24
Spark SQL: Relational Data Processing in Spark
2015
SIGMOD
0.00054865648
518
Towards a Unified Architecture for in-RDBMS Analytics
2012
SIGMOD
0.00017167492
543
Orthogonal Optimization of Subqueries and Aggregation
2001
SIGMOD
0.0001682612
894
Froid: Optimization of Imperative Programs in a Relational Database
2018
VLDB
0.00013367658
1,118
The POSTGRES Data Model
1987
VLDB
0.00012104924
1,261
Rewriting Procedures for Batched Bindings
2008
VLDB
0.0001143305
2,370
Declarative Recursive Computation on an RDBMS or, Why You Should Use a Database For Distributed Machine Learning
2019
VLDB
8.6795925e-05
2,597
The MemSQL Query Optimizer: A modern optimizer for real-time analytics in a distributed database
2016
VLDB
8.3604418e-05
2,684
Compiling PL/SQL Away
2020
CIDR
8.25952e-05
2,939
Extracting Equivalent SQL from Imperative Code in Database Applications
2016
SIGMOD
7.9395908e-05
3,992
Aggify: Lifting the Curse of Cursor Loops using Custom Aggregates
2020
SIGMOD
6.9695338e-05
4,180
BlackMagic: Automatic Inlining of Scalar UDFs into SQL Queries with Froid
2019
VLDB
6.8487143e-05
4,847
Avalanche-Safe LINQ Compilation
2010
VLDB
6.4805473e-05
5,814
The Flatter, the Better: Query Compilation Based on the Flattening Transformation
2015
SIGMOD
6.0779807e-05
5,828
PL/SQL Without the PL
2020
SIGMOD
6.073983e-05
6,328
Functional-Style SQL UDFs With a Capital 'F'
2020
SIGMOD
5.9113895e-05
Semantically Similar Papers