~/talk

How types can turn a SQL interpreter into a SQL compiler

Talkat Strange Loop 2014 · 2014-09-17..09-19· [databases, typescript]
slides:none on file

A 3,000–4,000 line Scala prototype called LegoBase generates low-level C and achieves up to >10x (peak) speedups versus commercial DBs and up to 20x versus dbx, beating Hyper in the paper’s benchmarks and earning a VLDB best paper. It uses LMS staging, mixed-stage data structures, and memory-mapped I/O so an interpreted SQL engine compiles into tight code (example: a query drops from ~38s to ~3.7s).

AI-written summary · about

  1. 0:00Introduction
  2. 1:03Constraints in databases
  3. 2:06Minimal SQL processor in Scala
  4. 11:53Abstractions for SQL
  5. 15:56Parsing SQL to algebra
  6. 17:40Query operators: scan and project
  7. 20:28Filtering and joins
  8. 23:41Interpreter performance
  9. 25:52Interpreter to compiler
  10. 28:03Lightweight modular staging
  11. 30:29Low-level code generation
  12. 34:24Scaling to real systems
  13. 35:47Conclusion
  14. 36:29Q&A
~/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.