计算机科学 > 数据库
[提交于 2019年9月10日]
标题:Compiling PL/SQL Away
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:"PL/SQL functions are slow," is common developer wisdom that derives from the tension between set-oriented SQL evaluation and statement-by-statement PL/SQL interpretation. We pursue the radical approach of compiling PL/SQL away, turning interpreted functions into regular subqueries that can then be efficiently evaluated together with their embracing SQL query, avoiding any PL/SQL to SQL context switches. Input PL/SQL functions may exhibit arbitrary control flow. Iteration, in particular, is compiled into SQL-level recursion. RDBMSs across the board reward this compilation effort with significant run time savings that render established developer lore questionable.
提交历史
来自:Torsten Grust[v1] 2019年9月10日 星期二 00:00:00 UTC