~/talk

Functional Programming on Top of SQL Engines

Talkat PADL 2022 · 2022-01-17..01-18· [databases, functional-programming]
links:none on file
slides:none on file

The work claims a non‑invasive, SQL‑level compiler that turns recursion‑heavy SQL UDFs into a single WITH RECURSIVE query so the engine plans once, supports memoization, and runs much faster. It applies a pipeline of CPS conversion, defunctionalization, and trampolined style rewrites to emit iterative CTEs; a Floyd‑Warshall example shows ~88,000 UDF planning events avoided and speedups of 10× or more in experiments.

AI-written summary · about

  1. 0:00Functional programming on SQL
  2. 2:12Moving computation close to data
  3. 6:26Graph algorithms and SQL recursion
  4. 9:16Recursive SQL UDFs and functional style
  5. 13:27Performance overhead of recursive UDFs
  6. 15:32Optimizing UDFs as functions
  7. 20:50Functional transformations for SQL
  8. 23:40Generating efficient recursive CTEs
  9. 25:24Performance gains and applications
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.