Client Tier XML Single-Scope Indexing for XPath Performance
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
XML operations performed in the client tier suffer from performance degradation due to inefficient execution compared to database servers enhanced for XML operations.
Innovation Solution
The client tier generates a logical index, referred to as a single-scope index, which indexes the nodes of an XML document, allowing efficient performance of XML operations by mirroring structures maintained by database servers, and using pathids and hierarchy-order key values to facilitate fast lookup and retrieval of nodes.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If XML operations are performed in the client tier without indexing structures, then the system maintains simplicity and ease of operation, but performance degradation occurs due to inefficient execution
Solution Approach 1:
The patent creates a copy of the database server's indexing structures (path table and B-tree indexes) and maintains them in the client tier. This allows the client tier to perform XML operations with the same efficiency as the database server, resolving the performance degradation issue while keeping the complexity management manageable through structured copying of proven data structures
Solution Approach 2:
The indexing structure is divided into two separate components: a path table that stores hierarchical path information and B-tree indexes that store sorted key-value pairs. This segmentation allows each component to be optimized independently and processed efficiently, improving overall XML operation performance in the client tier
2Ease of operation
If the client tier materializes the entire XML document for processing, then complete data access is enabled, but processing overhead and memory consumption increase significantly
Solution Approach 1:
The patent extracts only the essential indexing information (paths and sorted keys) from the full XML document structure and maintains these extracted components in the client tier. This allows efficient data access through the indexes without needing to materialize or process the entire XML document, significantly reducing processing overhead and memory consumption
Data Source
AI summary
To improve performance of performing XML operations on an XML document in by a client tier, the client generates an index that indexes the nodes of an XML document. The index may be generated, for example, by and during parsing of the XML document. The index contains similar structures to those maintained by a database server to perform XML operations on collections of XML documents. In lieu of parsing XML document to generate an index, the client may generate indexes based on data retrieved from the indexes at the database server.


