Supporting efficient partial update of hierarchically structured documents based on record storage
First Claim
1. A computer-implemented method for performing a partial update of a hierarchically structured document referencing one or more records stored in a database, the method comprising:
- receiving an expression by a computer processor, wherein the expression specifies one or more updates to be applied to the document;
searching the document by the computer processor to find one or more update target positions;
building, based on the received expression, a pending update list that contains requested updates which have not yet been applied to the document;
in response to finding an update target position in the document, updating a row of a document column in a base table of the database with the new version number for the document;
generating, based on the pending update list, new database records to be inserted into the new version of the document and identifying old database records to be replaced in the new version of the document; and
updating a database table for the document to mark the old database records as obsolete and to add new database records to be referenced in the new version of the document.
3 Assignments
0 Petitions
Accused Products
Abstract
Methods and apparatus, including computer program products, implementing and using techniques for performing a partial update of a hierarchically structured document referencing one or more records stored in a database. An expression specifying one or more updates to be applied to the document is received. The document is searched to find update target position(s). Based on the received expression, a pending update list is built. When an update target position is found, a row of a document column in a base table is updated with the new version number for the document. New database records for insertion into the new document version are generated from the pending update list. Old database records to be replaced are identified. A database table for the document is updated to mark the old database records as obsolete and to add new database records to be referenced in the new version of the document.
44 Citations
20 Claims
-
1. A computer-implemented method for performing a partial update of a hierarchically structured document referencing one or more records stored in a database, the method comprising:
-
receiving an expression by a computer processor, wherein the expression specifies one or more updates to be applied to the document; searching the document by the computer processor to find one or more update target positions; building, based on the received expression, a pending update list that contains requested updates which have not yet been applied to the document; in response to finding an update target position in the document, updating a row of a document column in a base table of the database with the new version number for the document; generating, based on the pending update list, new database records to be inserted into the new version of the document and identifying old database records to be replaced in the new version of the document; and updating a database table for the document to mark the old database records as obsolete and to add new database records to be referenced in the new version of the document. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. A computer program product for performing a partial update of a hierarchically structured document referencing one or more records stored in a database, the computer program product comprising:
-
a computer readable storage medium having computer readable program code embodied therewith, the computer readable program code comprising; computer readable program code configured to receive an expression that specifies one or more updates to be applied to the document; computer readable program code configured to search the document to find one or more update target positions; computer readable program code configured to build, based on the received expression, a pending update list that contains requested updates which have not yet been applied to the document; computer readable program code configured to update a row of a document column in a base table of the database with the new version number for the document, in response to finding an update target position in the document; computer readable program code configured to generate, based on the pending update list, new database records to be inserted into the new version of the document and identify old database records to be replaced in the new version of the document; and computer readable program code configured to update a database table for the document to mark the old database records as obsolete and to add new database records to be referenced in the new version of the document.
-
-
20. A system for performing a partial update of a hierarchically structured document referencing one or more records stored in a database, the system comprising:
-
a database, the database storing a plurality of database records that are referenced by a hierarchically structured document; a processor; and a memory, the memory storing instructions that when executed by the processor cause the processor to; receive an expression that specifies one or more updates to be applied to the document; search the document to find one or more update target positions; build, based on the received expression, a pending update list that contains requested updates which have not yet been applied to the document; in response to finding an update target position in the document, update a row of a document column in a base table of the database with the new version number for the document; generate, based on the pending update list, new database records to be inserted into the new version of the document and identify old database records to be replaced in the new version of the document; and update a database table for the document to mark the old database records as obsolete and to add new database records to be referenced in the new version of the document.
-
Specification