Mechanism for efficient maintenance of XML index structures in a database system
First Claim
1. A method comprising performing a machine-executed operation involving instructions, wherein the machine-executed operation is at least one of:
- A) sending said instructions over transmission media;
B) receiving said instructions over transmission media;
C) storing said instructions onto a machine-readable storage medium; and
D) executing the instructions;
wherein said instructions are instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of;
when changes are made to indexed information, storing an indication that an index has to be changed, wherein the step of storing an indication is performed in a first operation that is synchronous relative to the changes, wherein the index is not changed during said first operation; and
in response to detecting that certain conditions have been satisfied, performing a second operation that updates the index and removes the indications that the index has to be changed, wherein the second operation is performed asynchronously relative to the changes made to the indexed information.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and apparatus for efficiently maintaining XML index structures in a database system is provided. Instead of immediately synchronizing the XML index structures for every change submitted to the database, the changes are stored in a PENDING table. The XML index structures are periodically synchronized, based on certain criteria or at a user'"'"'s discretion. Between synchronizations, the XML index structures may be in stale mode or current mode. If in stale mode, a request to access indexed information will use the XML index structures to find the desired indexed information without checking the PENDING table. If in current mode, a request to access indexed information will search the XML index structures and also check the PENDING table to determine 1) whether the indexed information has been updated or deleted, and 2) whether information relevant to the request has been inserted or updated.
97 Citations
11 Claims
-
1. A method comprising performing a machine-executed operation involving instructions, wherein the machine-executed operation is at least one of:
-
A) sending said instructions over transmission media;
B) receiving said instructions over transmission media;
C) storing said instructions onto a machine-readable storage medium; and
D) executing the instructions;
wherein said instructions are instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of;
when changes are made to indexed information, storing an indication that an index has to be changed, wherein the step of storing an indication is performed in a first operation that is synchronous relative to the changes, wherein the index is not changed during said first operation; and
in response to detecting that certain conditions have been satisfied, performing a second operation that updates the index and removes the indications that the index has to be changed, wherein the second operation is performed asynchronously relative to the changes made to the indexed information. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
Specification