Using the Berkeley DB XML API in JDeveloper
In BDB XML, documents are stored in containers. Containers are of two types: Wholedoc containers and Node containers. A Wholedoc container stores the complete XML document without any modifications to line breaks or whitespaces. In a Node container, XML documents are stored as nodes. Each element in an XML document is stored as a node in the database along with the element attributes, attribute values, and text nodes. BDB XML also stores information about reassembling an XML document from the nodes stored in the database. The Node container is the preferred type and is the default type. A comparison of Node container and Wholedoc container is discussed in the following table:
Container Type |
Storage Mode |
Query Performance |
Load Performance |
Application |
---|---|---|---|---|
Node Container |
XML document stored in nodes |
Faster to query |
Lower load performance |
Use Node container if faster query performance is required, or if document size is more than 1MB. |
Wholedoc... |