go back
go back
Volume 17, No. 13
SQL Engines Excel at the Execution of Imperative Programs
Abstract
SQL query engines can act as ecient runtime environments for the execution of imperative programs over database-resident tabular data. To make this point, we lay out the details of a compilation strategy that maps the basic blocks of arbitrarily branching and looping control ow graphs into plain—possibly recursive—SQL:1999 common table expressions. The compiler does not stumble when faced with imperative programs of several hundred lines and emits SQL code that can execute such programs over entire batches of input arguments. These batches create opportunities for parallel program evaluation which contemporary query decorrelation techniques exploit automatically. SQL engines that already support UDFs may nd the present program execution approach to outperform their native implementation—SQL engines without such support may gain UDF capabilities without the need to build a dedicated interpreter.
PVLDB is part of the VLDB Endowment Inc.
Privacy Policy