Decorrelation of user defined function invocations in queries

Simhadri, Varun ; Ramachandra, Karthik ; Chaitanya, Arun ; Guravannavar, Ravindra ; Sudarshan, S. (2014) Decorrelation of user defined function invocations in queries In: 2014 IEEE 30th International Conference on Data Engineering.

Full text not available from this repository.

Official URL: http://doi.org/10.1109/ICDE.2014.6816679

Related URL: http://dx.doi.org/10.1109/ICDE.2014.6816679

Abstract

Queries containing user-defined functions (UDFs) are widely used, since they allow queries to be written using a mix of imperative language constructs and SQL, thereby increasing the expressive power of SQL; further, they encourage modularity, and make queries easier to understand. However, not much attention has been paid to their optimization, except for simple UDFs without imperative constructs. Queries invoking UDFs with imperative constructs are executed using iterative invocation of the UDFs, leading to poor performance, especially if the UDF contains queries. Such poor execution has been a major deterrent to the wider usage of complex UDFs. In this paper we present a novel technique to decorrelate UDFs containing imperative constructs, allowing set-oriented execution of queries that invoke UDFs. Our technique allows imperative execution to be modeled using the Apply construct used earlier to model correlated subqueries, and enables transformation rules to be applied subsequently to decorrelate (or inline) UDF bodies. Subquery decorrelation was critical to the wide use of subqueries; our work brings the same benefits to queries that invoke complex UDFs. We have applied our techniques to UDFs running on two commercial database systems, and present results showing up to orders of magnitude improvement.

Item Type:Conference or Workshop Item (Paper)
Source:Copyright of this article belongs to IEEE
ID Code:128469
Deposited On:21 Oct 2022 09:47
Last Modified:15 Nov 2022 03:18

Repository Staff Only: item control page