Partial query caching
First Claim
Patent Images
1. A method for processing requests to a database servers comprising:
- receiving a first query at the database server from a user;
generating a first plan for executing the first query via the database server, wherein the plan includes a first plurality of plan operators that include at least a first plan operator that outputs a first results set;
storing the first results set;
receiving a second query from a user;
generating a second plan for executing the second query via the database server, wherein the second execution plan includes a second plurality of plan operators that include at least a second plan operator that corresponds to the first plan operator;
determining that at least a portion of the first results set may be used as a second results set of said second operator; and
computing the second query based on the first results set that was stored.
1 Assignment
0 Petitions
Accused Products
Abstract
When a query is performed an execution plan is formed, which is made up of a plurality of plan operators. Before executing any given plan operator, a storage area is checked. If a results set has been stored corresponding to the plan operator, then the cached results set is used instead of the executing the plan operator. If no results set exists that corresponds to the particular plan operator, the plan operator is executed, and the results set that is output may be stored for use by another plan operator of another execution plan.
130 Citations
22 Claims
-
1. A method for processing requests to a database servers comprising:
-
receiving a first query at the database server from a user;
generating a first plan for executing the first query via the database server, wherein the plan includes a first plurality of plan operators that include at least a first plan operator that outputs a first results set;
storing the first results set;
receiving a second query from a user;
generating a second plan for executing the second query via the database server, wherein the second execution plan includes a second plurality of plan operators that include at least a second plan operator that corresponds to the first plan operator;
determining that at least a portion of the first results set may be used as a second results set of said second operator; and
computing the second query based on the first results set that was stored. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A machine-readable medium carrying one or more sequences of instructions, which when executed by one or more processors, causes the one or more processors to perform a method comprising the steps of:
-
receiving a first query at the database server from a user;
generating a first plan for executing the first query via the database server, wherein the plan includes a first plurality of plan operators that include at least a first plan operator that outputs a first results set;
storing the first results set;
receiving a second query from a user;
generating a second plan for executing the second query via the database server, wherein the second execution plan includes a second plurality of plan operators that include at least a second plan operator that corresponds to the first plan operator;
determining that at least a portion of the first results set may be used as a second results set of said second operator; and
computing the second query based on the first results set that was stored. - View Dependent Claims (13, 14, 15, 16, 17, 18, 19, 20, 21, 22)
-
Specification