Techniques for changing XML content in a relational database
First Claim
1. A method of comprising:
- receiving, at a database server, a request to change an XML document by performing an operation on a portion of the XML document, wherein the XML document is stored on durable storage;
in response to the request, accessing the portion of the XML document through relational structures managed by the database server;
creating in volatile memory an in-memory representation of the XML document;
performing the change to the in-memory representation;
tracking which portions of the in-memory representation are changed in response to the request; and
updating the durably stored XML document based on which portions of the in-memory representations were changed without updating portions of the durably stored XML document that were not changed in the in-memory representation.
0 Assignments
0 Petitions
Accused Products
Abstract
Techniques are provided for changing data for an XML construct in an SQL/XML compliant database management system (DBMS). The DBMS allows instances of XML type to represent XML constructs, such as XML documents, XML elements, XML attributes, and fragments of XML documents. An SQL statement is received that includes an XML operator that operates on a particular component in an instance of XML type. During execution of the SQL statement, the XML operator is evaluated by modifying content for the component without modifying the entire instance. For example, an XML delete operator deletes the particular component from the instance. Other XML operators include an insert operator, an insert-before operator, an append-child operator, and an update operator. During execution, these operators may be rewritten to operate on existing SQL constructs, or evaluated by updating only some of the existing SQL constructs, or both.
62 Citations
10 Claims
-
1. A method of comprising:
- receiving, at a database server, a request to change an XML document by performing an operation on a portion of the XML document, wherein the XML document is stored on durable storage;
in response to the request, accessing the portion of the XML document through relational structures managed by the database server;
creating in volatile memory an in-memory representation of the XML document;
performing the change to the in-memory representation;
tracking which portions of the in-memory representation are changed in response to the request; and
updating the durably stored XML document based on which portions of the in-memory representations were changed without updating portions of the durably stored XML document that were not changed in the in-memory representation. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
- receiving, at a database server, a request to change an XML document by performing an operation on a portion of the XML document, wherein the XML document is stored on durable storage;
-
9. A method of comprising:
- receiving, at a database server, a request to change an XML document by performing an operation on a portion of the XML document, wherein the XML document is stored on durable storage and the step of receiving a request includes receiving a database command;
rewriting the database command to produce a revised database command; and
in response to the request, accessing the portion of the XML document through relational structures managed by the database server; and
making the change are the XML document on durable storage by executing the revised database command on the portion of the XML document without rewriting onto the durable storage other portions of the XML document. - View Dependent Claims (10)
- receiving, at a database server, a request to change an XML document by performing an operation on a portion of the XML document, wherein the XML document is stored on durable storage and the step of receiving a request includes receiving a database command;
Specification