×

Query Optimization by Specifying Path-Based Predicate Evaluation in a Path-Based Query Operator

  • US 20100312756A1
  • Filed: 06/04/2009
  • Published: 12/09/2010
  • Est. Priority Date: 06/04/2009
  • Status: Active Grant
First Claim
Patent Images

1. A method comprising:

  • receiving a query against a collection of XML documents stored in one or more tables of a database, wherein the query contains a row filter condition;

    determining that the query contains a set of path-based query operators that satisfy one or more criteria, wherein the set of path-based query operators comprises a first path-based query operator and a second path-based query operator;

    wherein the one or more criteria includes;

    a) the output from the first path-based query operator is the input to the second path-based operator;

    b) the row filter condition contains a path-based operand that references the output from the second path-based query operator; and

    c) the output from the second path-based query operator is not returned in the results for the query;

    in response to determining that the set of path-based query operators meet the one or more criteria, rewriting the query by eliminating the second path-based query operator and re-writing the first path-based query operator to only return rows that satisfy the row filter condition;

    wherein the method is performed by one or more computing devices.

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