×

Cost-based optimizer for an XML data repository within a database

  • US 7,930,277 B2
  • Filed: 04/21/2004
  • Issued: 04/19/2011
  • Est. Priority Date: 04/21/2004
  • Status: Active Grant
First Claim
Patent Images

1. A method comprising the computer-implemented steps of:

  • gathering statistics by a database server about nodes that are stored in a database repository that is managed by the database server;

    wherein said nodes form a hierarchy;

    wherein each node is either an XML file or an XML file container;

    wherein at least one node in the hierarchy is an XML file container that contains a plurality of XML files, each of which contains a plurality of XML elements;

    storing said statistics; and

    in response to a request to the database server for access to one or more XML resources from said database repository, the database server computing a computational cost associated with each of two or more methods of accessing said one or more XML resources from said database repository, based on said statistics;

    wherein the two or more methods of accessing said one or more XML resources from said database repository include accessing said one or more XML resources through an index and accessing said one or more XML resources without using the index;

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

    wherein XML files of said nodes are XML resources, and wherein the step of computing a computational cost comprises (a) computing a selectivity value for each of one or more predicates, from said request, that contain operators on said database repository and (b) computing a computational cost of traversing, to locate a particular XML resource specified in said request, an index in which said XML resources are indexed for accessing said database repository.

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