×

Technique to estimate the cost of streaming evaluation of XPaths

  • US 7,797,310 B2
  • Filed: 03/08/2007
  • Issued: 09/14/2010
  • Est. Priority Date: 10/16/2006
  • Status: Active Grant
First Claim
Patent Images

1. A method to estimate a cost for computing a query on XML documents stored in a database, the method comprising the steps of:

  • maintaining a plurality of statistics about nodes in said XML documents;

    based upon said plurality of statistics, estimating a cost for computing at least one path expression in said query on said XML documents, said cost comprising an estimated CPU cost and an estimated I/O cost;

    wherein the cost of computing the at least one path expression is determined based on a mathematical function of the estimated CPU cost and the estimated I/O cost;

    wherein computing said at least one path expression is performed using streaming evaluation;

    wherein estimating a cost for computing a path expression of the at least one path expression includes;

    estimating an input-size of said XML documents, said input-size being based on units of bytes;

    based on a portion of said plurality of statistics about said nodes, estimating an output-size associated with said path expression;

    wherein the steps are performed by one or more computing devices.

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