Estimating the cost of XML operators for binary XML storage
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)
- 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 ↗
Cited By — Indexed Forward Citations (2 of 2 total)
References Cited — Backward Prior Art (22)
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.