REUSING EXISTING QUERY PLANS IN A DATABASE SYSTEM
First Claim
1. A method comprising:
- receiving a user query for selecting data from a database;
parsing the user query to identify a form of the user query and one or more arguments associated with the user query;
determining whether the form of the user query corresponds to a skeletal query form of a set of skeletal query forms; and
,if the form of the user query corresponds to the skeletal query form;
retrieving an executable copy of code corresponding to the skeletal query form;
executing the code corresponding to the skeletal query form using the one or more arguments associated with the user query; and
returning results of the execution of the 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.
-
Citations
24 Claims
-
1. A method comprising:
-
receiving a user query for selecting data from a database; parsing the user query to identify a form of the user query and one or more arguments associated with the user query; determining whether the form of the user query corresponds to a skeletal query form of a set of skeletal query forms; and
,if the form of the user query corresponds to the skeletal query form; retrieving an executable copy of code corresponding to the skeletal query form; executing the code corresponding to the skeletal query form using the one or more arguments associated with the user query; and returning results of the execution of the 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; and
,if the form of the user query corresponds to the skeletal query form; retrieve an executable copy of code corresponding to the skeletal query form; execute the 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 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, if the form of the user query corresponds to the skeletal query form; retrieves an executable copy of code corresponding to the skeletal query form; executes the 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 code in response to the user query. - View Dependent Claims (18, 19, 20, 21, 22, 23, 24)
-
Specification