Method and apparatus for XML query evaluation using early-outs and multiple passes
Abstract
A method and apparatus is disclosed for XML query evaluation using early-outs and multiple passes to evaluate an XML query. A multi-pass evaluation procedure evaluates the XML query one step at a time as needed to complete evaluation. The multi-pass evaluation procedure evaluates XML queries containing logical expressions such as “AND” expressions, “OR” expressions, and implied “AND” expressions within “FOR” clauses. Queries containing logical expressions are often satisfied before every component is evaluated. Thus, executing the multi-pass evaluation procedure allows the evaluation to exit early when the veracity of the query is determined, not necessarily when every component has been evaluated. The multi-pass evaluation procedure executes as long as a descendant axis of the XML query need not be evaluated past a child node. When evaluation of a descendant axis past a child node is required, the multi-pass evaluation procedure may switch to a single-pass evaluation procedure to complete evaluation.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 50 · Forward citations: 10.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer program product comprising a computer readable storage medium having computer usable program code programmed for Extensible Mark-up Language (“XML”) query evaluation using early-outs and multiple passes, the computer program product having operations comprising: rewriting, by way of a processor executing instructions of a memory, an alterable XML query comprising multiple steps such that less selective steps of the XML query will be evaluated after more selective steps, wherein the XML query comprises logical expressions formatted according to one of an XPath expression language and
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (10 of 10 total)
References Cited — Backward Prior Art (50)
Non-Patent Literature (5)
- "An Efficient Xpath Query Processor for XML Streams" Chen, Y.; Davidson, B.S.; Zheng, Y., IEEE 2006.
- "An XML Query Engine for Network-Bound Data" ACM Digital Library, Ives, Z.G. et al.; 2002.
- "Cost-based optimization in DB2 XML" Balmin, A. et al., IBM Systems Journal, vol. 45, No. 2, 2006.
- "Cost-Sensitive Reordering of Navigational Primitives" Kanne, C.C. et al., ACM, 2005.
- "Efficient Evaluation of Multiple Queries on Streaming XML Data" ACM Digital Library/INSPEC, Lee, M.L. et al.; 2002.