×

Using sibling-count in XML indexes to optimize single-path queries

  • US 20090037369A1
  • Filed: 07/31/2007
  • Published: 02/05/2009
  • Est. Priority Date: 07/31/2007
  • Status: Active Grant
First Claim
Patent Images

1. A method for optimizing a query, comprising performing a machine-executed operation involving instructions, wherein said instructions are instructions which, when executed by one or more processors, cause the one or more processors to perform certain steps comprising:

  • receiving a query that specifies a function, wherein the function;

    receives a path expression as an argument;

    returns a value of an XML node when the path expression refers to a single node; and

    does not return any value when the path expression refers to more than one XML node;

    determining a quantity of a set of XML nodes to which the path expression refers;

    transforming the first query into a second query, wherein the second query;

    does not include the function;

    includes a condition that a match occurs when said quantity is one; and

    returns a second result that is identical to the first result returned by the first query,wherein the machine-executed operation is at least one of (a) sending said instructions over transmission media, (b) receiving said instructions over transmission media, (c) storing said instructions onto a machine-readable storage medium, or (d) executing the instructions.

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