Direct call threaded code
First Claim
1. A method for pre-processing an access plan generated for a query in a relational database management system to include a direct call mechanism replacing a lookup function of a run-time interpreter, said access plan including a plurality of operation codes, each of said operation codes being associated with one or more executable functions for performing the query, said method comprising the steps of:
- (a) determining from the access plan an executable function associated with a first operation code; and
(b) augmenting said first operation code in the access plan with a pointer to said executable function to provide a direct call mechanism replacing a lookup function of a run-time interpreter.
1 Assignment
0 Petitions
Accused Products
Abstract
A pre-pass and direct call mechanism which replaces the interpreter. The mechanism moves static decisions out of the repeated runtime path into a pre-pass operation. Advantageously, the mechanism reduces runtime overhead and improves overall performance of the DBMS during runtime, while maintaining the considerable investment in opcode generation and plan representation.
-
Citations
9 Claims
-
1. A method for pre-processing an access plan generated for a query in a relational database management system to include a direct call mechanism replacing a lookup function of a run-time interpreter, said access plan including a plurality of operation codes, each of said operation codes being associated with one or more executable functions for performing the query, said method comprising the steps of:
-
(a) determining from the access plan an executable function associated with a first operation code; and (b) augmenting said first operation code in the access plan with a pointer to said executable function to provide a direct call mechanism replacing a lookup function of a run-time interpreter. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
Specification