Back to papers
SQL Engines Excel at the Execution of Imperative Programs
Summary: Compiles imperative control-flow (branches, loops) into SQL:1999 CTEs with recursion to run programs inside SQL engines over tabular data. Batched inputs expose parallelism and let decorrelation optimize execution, enabling SQL engines to run or outperform UDFs without external interpreters.
(summarized by gpt-5-mini on Feb 09 2026)
- Paper ID
- 13714
- Venue
- VLDB
- Year
- 2024
- Pagerank
- 4.2635782e-05
- Overall Rank
- 9,884 | 31.24%
- DOI
-
10.14778/3704965.3704976
Incoming Non-self Citations Over Time
Incoming Citations (Sorted by Pagerank)
Showing 1 of 1 citing papers.
Outgoing Citations (Sorted by Pagerank)
Showing 22 of 22 cited papers.
Citations counted here include only citations to other VLDB/SIGMOD/CIDR/PODS papers in this database.
| Rank |
Cited Paper |
Year |
Venue |
Pagerank |
| 60 |
Efficiently Compiling Efficient Query Plans for Modern Hardware |
2011 |
VLDB |
0.00064439773 |
| 202 |
LINQ: Reconciling Objects, Relations and XML in the .NET Framework |
2006 |
SIGMOD |
0.00034920912 |
| 418 |
Morsel-Driven Parallelism: A NUMA-Aware Query Evaluation Framework for the Many-Core Age |
2014 |
SIGMOD |
0.00023729211 |
| 735 |
Umbra: A Disk-Based System with In-Memory Performance |
2020 |
CIDR |
0.00017452467 |
| 974 |
The POSTGRES Data Model |
1987 |
VLDB |
0.00014896625 |
| 1,108 |
Froid: Optimization of Imperative Programs in a Relational Database |
2018 |
VLDB |
0.00013984276 |
| 1,284 |
Amazon Redshift Re-invented |
2022 |
SIGMOD |
0.00012837822 |
| 1,456 |
Rewriting Procedures for Batched Bindings |
2008 |
VLDB |
0.00011899772 |
| 1,750 |
Weld: A Common Runtime for High Performance Data Analytics |
2017 |
CIDR |
0.00010683647 |
| 2,237 |
Procedural Extensions of SQL: Understanding their usage in the wild |
2021 |
VLDB |
9.2212748e-05 |
| 3,296 |
Extracting Equivalent SQL from Imperative Code in Database Applications |
2016 |
SIGMOD |
7.2596583e-05 |
| 3,648 |
One WITH RECURSIVE is Worth Many GOTOs |
2021 |
SIGMOD |
6.8831123e-05 |
| 4,582 |
BlackMagic: Automatic Inlining of Scalar UDFs into SQL Queries with Froid |
2019 |
VLDB |
6.070187e-05 |
| 4,648 |
Aggify: Lifting the Curse of Cursor Loops using Custom Aggregates |
2020 |
SIGMOD |
6.0247446e-05 |
| 4,924 |
User-Defined Operators: Efficiently Integrating Custom Algorithms into Modern Databases |
2022 |
VLDB |
5.822682e-05 |
| 5,111 |
Avalanche-Safe LINQ Compilation |
2010 |
VLDB |
5.6885921e-05 |
| 6,108 |
PL/SQL Without the PL |
2020 |
SIGMOD |
5.2059662e-05 |
| 6,212 |
Snakes on a Plan: Compiling Python Functions into Plain SQL Queries |
2022 |
SIGMOD |
5.1552576e-05 |
| 6,375 |
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 |
5.0923872e-05 |
| 6,645 |
Functional-Style SQL UDFs With a Capital 'F' |
2020 |
SIGMOD |
4.978205e-05 |
| 6,701 |
YeSQL: “You extend SQL” with Rich and Highly Performant User-Defined Functions in Relational Databases |
2022 |
VLDB |
4.9561066e-05 |
| 6,990 |
Machine Learning, Linear Algebra, and More: Is SQL All You Need? |
2022 |
CIDR |
4.8704904e-05 |
Semantically Similar Papers
| Overall Rank |
Paper |
Year |
Venue |
Pagerank |
| 3,648 |
One WITH RECURSIVE is Worth Many GOTOs |
2021 |
SIGMOD |
6.8831123e-05 |
| 9,763 |
The UDFBench Benchmark for General-purpose UDF Queries |
2025 |
VLDB |
4.2856106e-05 |
| 10,459 |
UDFBench: A Tool for Benchmarking UDF Queries on SQL Engines |
2025 |
SIGMOD |
4.1945683e-05 |
| 6,189 |
Accelerating Python UDFs in Vectorized Query Execution |
2022 |
CIDR |
5.1647573e-05 |
| 4,569 |
User-Defined Table Operators: Enhancing Extensibility for ORDBMS |
1999 |
VLDB |
6.0782978e-05 |
| 1,108 |
Froid: Optimization of Imperative Programs in a Relational Database |
2018 |
VLDB |
0.00013984276 |
| 6,645 |
Functional-Style SQL UDFs With a Capital 'F' |
2020 |
SIGMOD |
4.978205e-05 |
| 4,376 |
Just-in-time compilation for SQL query processing |
2013 |
VLDB |
6.2424797e-05 |
| 8,583 |
Efficient Execution of User-Defined Functions in SQL Queries |
2023 |
VLDB |
4.4919445e-05 |
| 3,296 |
Extracting Equivalent SQL from Imperative Code in Database Applications |
2016 |
SIGMOD |
7.2596583e-05 |