Reusing existing query plans in a database system
First Claim
Patent Images
1. A method comprising:
- receiving, at a processing system that includes a computer processor and memory, a user query for selecting data from a database;
parsing, by the processing system, the user query to identify a form of the user query and one or more arguments associated with the user query;
determining, by the processing system, whether the form of the user query corresponds to a skeletal query form of a set of skeletal query forms;
retrieving, by the processing system, a compiled skeletal query corresponding to the skeletal query form from a database, the compiled skeletal query including machine code that is executable directly by the processing system;
executing, by the processing system, the machine code corresponding to the skeletal query form using the one or more arguments associated with the user query; and
returning, by the processing system, results of the execution of the machine code in response to the user query.
7 Assignments
0 Petitions
Accused Products
Abstract
A system and method for executing query plans preprocesses a user'"'"'s queries to identify and extract select parameters of the query, creates a skeletal query with reference to the extracted parameters, creates and compiles an executable version of the skeletal query, then executes the compiled version of the skeletal query using the particular parameters in the current query. The compiled version of the parameterized skeletal query is stored, and when another query is submitted that matches the skeletal query (but with potentially different parameters), the previously compiled skeleton query is executed with the parameters of this latter query.
13 Citations
24 Claims
-
1. A method comprising:
-
receiving, at a processing system that includes a computer processor and memory, a user query for selecting data from a database; parsing, by the processing system, the user query to identify a form of the user query and one or more arguments associated with the user query; determining, by the processing system, whether the form of the user query corresponds to a skeletal query form of a set of skeletal query forms; retrieving, by the processing system, a compiled skeletal query corresponding to the skeletal query form from a database, the compiled skeletal query including machine code that is executable directly by the processing system; executing, by the processing system, the machine code corresponding to the skeletal query form using the one or more arguments associated with the user query; and returning, by the processing system, results of the execution of the machine code in response to the user query. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A non-transitory computer readable medium that includes a computer program, which, when executed by a processing system, causes the processing system to:
-
receive a user query for selecting data from a database; parse the user query to identify a form of the user query and one or more arguments associated with the user query; determine whether the form of the user query corresponds to a skeletal query form of a set of skeletal query forms; a compiled skeletal query corresponding to the skeletal query form, the compiled skeletal query including machine code that is executable directly by the processing system; execute the machine code corresponding to the skeletal query form using the one or more arguments associated with the user query; and return results of the execution of the machine code in response to the user query. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. A system comprising:
-
a database, a query parser, and a processor, wherein; the query parser receives a user query for selecting data from the database, and parses the user query to identify a form of the user query and one or more arguments associated with the user query; and the processor; determines whether the form of the user query corresponds to a skeletal query form of a set of skeletal query forms, and retrieves a compiled skeletal query corresponding to the skeletal query form, the compiled skeletal query including machine code that is executable directly by the processor; executes the machine code corresponding to the skeletal query form using the one or more arguments associated with the user query; and returns results of the execution of the machine code in response to the user query. - View Dependent Claims (18, 19, 20, 21, 22, 23, 24)
-
Specification