Techniques for efficient integration of text searching with queries over XML data
Abstract
A method and apparatus for rewriting a database command containing an embedded XML expression such that the rewritten database command recites a text function, in lieu of the embedded XML expression, is provided. Advantageously, a DBMS may take advantage of the efficiencies in storing XML data within the database, while avoiding the generation of unnecessary XML elements in processing the query when the XML elements contribute nothing to the outcome of the query. Cost-base or rule-based analysis may be performed to determine how to rewrite a received database command. The database server may functionally evaluate the text function or may use an index defined on a column of the database. The text function may function as a primary filter or may reference a column upon which an index is defined, wherein the index operates at the same or higher level than a column being referenced in the embedded XML expression.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 26 · Forward citations: 12.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A machine-implemented method, comprising the steps of: storing, within one or more structures of a database, data for an XML document; receiving a database command with an embedded XML query expression, wherein the embedded XML query expression specifies (a) a path that identifies one or more locations within the structure of the XML document, and (b) text search criteria for filtering the one or more locations based on content contained within the one or more locations; determining whether an index should be used as a primary filter; upon determination that a set of conditions is satisfied, t
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (12 of 12 total)
References Cited — Backward Prior Art (26)
Non-Patent Literature (5)
- Cheng, Josephine, et al., "IBM DB2 XML Extender, An end-to-end solution for storing and retrieving XML documents," IEEE, ICDE '00 Conference, San Diego, Feb. 2000, 128 pages. (Copy of Reference provided on CD-ROM).
- Dayen, I., "Storing XML in Relational Databases", XML.com XP-002275971(1998-2004) pp. 1-13. (Copy of Reference provided on CD-ROM).
- Funderbunk, J. et al., "XML programming with SQL/XML and XQuery", IBM Systems Journal XP-002295973 (2002) pp. 642-665. (Copy of Reference provided on CD-ROM).
- Hierarchical Queries, XP-002295972, pp. 8-3 to 8-7. (Copy of Reference provided on CD-ROM).
- Melton, Jim, "ISO-ANSI Working Draft, XML-Related Specifications (SQL/XML)," WG3: DRS-020, H2-2002-365, Aug. 2002, 154 pages. (Copy of Reference provided on CD-ROM).