DISTRIBUTED EXECUTION OF EXPRESSIONS IN A QUERY
1 Assignment
0 Petitions
Accused Products
Abstract
A computer-implemented method for executing a query specification can include evaluating the query specification by a first computing device to identify a candidate expression in the query specification to be executed by a second computing device hosting a source of data specified in the candidate expression. A cost estimate for executing the candidate expression at the first computing device is determined. Whether the cost estimate of executing the candidate expression at the first computing device is greater than a threshold is determined. The candidate expression is replaced with a native query function when the cost estimate of executing the candidate expression at the first computing device is greater than the threshold. The native query function can be executed at the second computing device. It can be determined whether a runtime context is necessary, and if necessary, a context parameter is injected into the native query function.
8 Citations
20 Claims
-
1-8. -8. (canceled)
-
9. A system for executing a query specification, comprising:
-
a first computing device having a processor and a memory; wherein the memory stores a query transformation engine and a query execution engine, and wherein the query transformation and execution engines, when executed by the processor, are operable to; evaluate the query specification to identify an expression in the query specification as a candidate expression to be executed by a second computing device hosting a source of data specified in the candidate expression; determine a cost estimate of executing the candidate expression at the first computing device; determine whether the cost estimate of executing the candidate expression at the first computing device is greater than a threshold; and replace the candidate expression with a native query function when the cost estimate of executing the candidate expression at the first computing device is greater than the threshold. - View Dependent Claims (10, 11, 12, 13, 14, 15)
-
-
16. A computer program product for executing a query specification, the computer program product comprising a computer readable storage medium having program code embodied therewith, the program code comprising computer readable program code configured for:
-
evaluating the query specification to identify an expression in the query specification as a candidate expression to be executed by a second computing device hosting a source of data specified in the candidate expression; determining a cost estimate of executing the candidate expression at a first computing device; determining whether the cost estimate of executing the candidate expression at the first computing device is greater than a threshold; and replacing the candidate expression with a native query function when the cost estimate of executing the candidate expression at the first computing device is greater than the threshold. - View Dependent Claims (17, 18, 19, 20)
-
Specification