×

Partial query caching

  • US 7,676,453 B2
  • Filed: 04/22/2004
  • Issued: 03/09/2010
  • Est. Priority Date: 04/22/2004
  • Status: Active Grant
First Claim
Patent Images

1. A method for computing a query at a database server comprising:

  • generating a plurality of first execution plans at the database server, wherein each first execution plan of said plurality of first execution plans is for executing a first query, wherein said each first execution plan includes a first plurality of plan operators, each plan operator of said first plurality of plan operators defining operations that are performed by the database server to execute said first query, execution of each plan operator of said first plurality of plan operators generating a first results set;

    generating a plurality of first signatures by generating, for each plan operator of the first pluralities of plan operators of said plurality of first execution plans, a first signature;

    generating a plurality of first results sets by executing each plan operator in said first pluralities of plan operators to generate a respective first results set for said each plan operator;

    storing each first results set of said plurality of first results sets, wherein a first results set of a particular plan operator is stored in association with the respective first signature of said particular plan operator;

    after storing the plurality of first results sets in association with said first signatures said database server receiving a second query from a user;

    generating a second plan for executing the second query at the database server, wherein the second execution plan includes a second plurality of plan operators that include at least one second plan operator, each plan operator of said second plurality of plan operators defining operations that are performed by the database server to execute said second query;

    generating a second signature for said at least one second plan operator of said second plurality of plan operators;

    using said second signature, searching signatures of said plurality of first signatures to determine whether at least a subset of a particular first results set of said plurality of first results sets is usable as a second results set of said second operator; and

    upon determining that at least a subset of said particular first results set of said plurality of first results sets is usable as a second results set of said second operator, computing a second results set for the second query based on the subset of the particular first results set that was stored.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×