Patents
US 8,024,325 B2#41405347 Most CitedActiveUnited States (USPTO)Utility

Estimating the cost of XML operators for binary XML storage

2Forward Citations (#41405347 Global)
0.1/yrCitation Velocity (#41712044 Global)
0.98Citation PageRank (#42925383 Global)
22Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

Techniques for estimating the cost of processing a database statement that includes one or more path expressions are provided. One aspect of cost is I/O cost, or the cost of reading data from persistent storage into memory according to a particular streaming operator. Binary-encoded XML data is stored in association with a synopsis that summarizes the binary-encoded XML data. The synopsis includes skip length information for one or more elements and indicates, for each such element, how large (e.g., in bytes) the element is in storage. The skip length information of a particular element thus indicates how much data may be skipped during I/O if the particular element does not match the path expression that is input to the streaming operator. The skip length information of one or more elements is used to estimate the cost of processing the database statement.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 22 · Forward citations: 2.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method for determining a cost of evaluating a query, the method comprising: analyzing one or more XML documents to generate statistics about a plurality of elements in the one or more XML documents; storing, in persistent storage, XML data that represents the one or more XML documents; wherein the statistics are separate from the XML data; wherein the statistics include skip length information that indicates, for each element in a subset of the plurality of elements, an amount of data in the persistent storage that said each element requires for storage, wherein said each element represents

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

References Cited — Backward Prior Art (22)

PatentTitleYearCitations
US 4,769,772 AAutomated query optimization method using both global and parallel local optimizations for materialization access planning for distributed databases1988420
US 5,999,936 AMethod and apparatus for compressing and decompressing sequential records in a computer system199942
US 2003140308 A1Mechanism for mapping XML schemas to object-relational database systems—210
US 2004128296 A1Method for storing XML documents in a relational database system while exploiting XML schema—76
US 2004163041 A1Relational database structures for structured documents—60
US 2004172599 A1Systems and methods for streaming XPath query—30
US 2004205082 A1System and method for querying XML streams—110
US 2004221229 A1Data structures related to documents, and querying such data structures—25
US 2004261019 A1XPath evaluation and information processing—42
US 2005091188 A1Indexing XML datatype content system and method—124
US 2005203957 A1Streaming XML data retrieval using XPath—101
US 2006005122 A1System and method of XML query processing—51
US 2006036631 A1High performance XML storage retrieval system and method—33
US 2006212467 A1Encoding of hierarchically organized data for efficient storage and processing—23
US 7,139,746 B2Extended markup language (XML) indexing method for processing regular path expression queries in a relational database and a data structure thereof200635
US 2007043702 A1Query expressions and interactions with metadata—46
US 2007043696 A1Method for estimating the cost of query processing—29
US 2007112851 A1Partial XML validation—42
US 2008091623 A1Technique to estimate the cost of streaming evaluation of XPaths—9
US 2008222087 A1System and Method for Optimizing Query Access to a Database Comprising Hierarchically-Organized Data—59
US 7,596,548 B2Query evaluation using ancestor information20098
US 7,707,005 B2Generating histograms of population data by scaling from sample data20109

Non-Patent Literature (5)

  • Balmin et al., 'Cost-based Optimization in DB2 XML', 2006, IBM System Jornal, IBM, vol. 45 No. 2, pp. 299-319.
  • Bayardo, R. et al., "An Evaluation of Binary Encoding Optimizations for Fast Stream Based XML Processing," Proceedings of the 13th International World Wide Web Conference, New York, NY, May 2004, 10 pages.
  • Beyer et al., 'System RX: One Part Relational, One Part XML', Jun. 14-16, 2005, SIGMOD, pp. 347-358.
  • Fegaras, L. et al., "Query Processing of Streamed XML Data," Proc. 11th Int'l Conf. Information and Knowledge Management, Nov. 2002, 8 pages.
  • Goldman, Roy, et al., "DataGuides: Enabling Query Formulation and Optimization in Semistructured Databases", The International Conference on Very Large Data Bases, 1997, 21 pages.