Direct call threaded code
First Claim
Patent Images
1. A computer program product for use on a computer wherein queries are entered by a user for retrieving data in a relational database management system having a query optimizer for generating an access plan for executing the query, said computer program product comprising:
- a recording medium;
means recorded on said medium for instructing said computer to perform the steps of,(a) retrieving the access plan from memory;
(b) determining an executable function associated with the first operation code in the access plan;
(c) augmenting said operation code in the access plan with a pointer to an intermediate processing function and an auxiliary data structure storing a pointer to said executable function;
(d) repeating steps (b) and (c) for the remaining operation codes in the access plan;
(e) storing the modified access plan in memory.
0 Assignments
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, already invested in the implementation of the DBMS.
38 Citations
10 Claims
-
1. A computer program product for use on a computer wherein queries are entered by a user for retrieving data in a relational database management system having a query optimizer for generating an access plan for executing the query, said computer program product comprising:
-
a recording medium; means recorded on said medium for instructing said computer to perform the steps of, (a) retrieving the access plan from memory; (b) determining an executable function associated with the first operation code in the access plan; (c) augmenting said operation code in the access plan with a pointer to an intermediate processing function and an auxiliary data structure storing a pointer to said executable function; (d) repeating steps (b) and (c) for the remaining operation codes in the access plan; (e) storing the modified access plan in memory. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A relational database management system for use with a computer system wherein queries are entered by a user for retrieving data from tables, the relational database management system including a query optimizer for generating an access plan associated with the queries entered by the user, said relational database management system comprising:
-
(a) means for retrieving the access plan generated for a query from memory; (b) means for determining an executable function associated with each of said operation codes in the access plan; (c) means for augmenting said operation code in the access plan with a pointer to an intermediate processing function and an auxiliary data structure storing a pointer to said associated executable function; (d) means for storing the modified access plan in memory. - View Dependent Claims (9, 10)
-
Specification